mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-05-29 00:25:12 +00:00
Initial commit
This commit is contained in:
commit
c5e731d8ae
2773 changed files with 600767 additions and 0 deletions
drupal7/web/profiles/testing
modules
drupal_system_listing_compatible_test
drupal_system_listing_compatible_test.infodrupal_system_listing_compatible_test.moduledrupal_system_listing_compatible_test.test
drupal_system_listing_incompatible_test
|
@ -0,0 +1,12 @@
|
|||
name = "Drupal system listing compatible test"
|
||||
description = "Support module for testing the drupal_system_listing function."
|
||||
package = Testing
|
||||
version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
files[] = drupal_system_listing_compatible_test.test
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
|
@ -0,0 +1 @@
|
|||
<?php
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Helper to verify tests in installation profile modules.
|
||||
*/
|
||||
class DrupalSystemListingCompatibleTestCase extends DrupalWebTestCase {
|
||||
/**
|
||||
* Use the Minimal profile.
|
||||
*
|
||||
* This test needs to use a different installation profile than the test which
|
||||
* asserts that this test is found.
|
||||
*
|
||||
* @see SimpleTestInstallationProfileModuleTestsTestCase
|
||||
*/
|
||||
protected $profile = 'minimal';
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Installation profile module tests helper',
|
||||
'description' => 'Verifies that tests in installation profile modules are found and may use another profile for running tests.',
|
||||
'group' => 'Installation profile',
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
// Attempt to install a module in Testing profile, while this test runs with
|
||||
// a different profile.
|
||||
parent::setUp(array('drupal_system_listing_compatible_test'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Non-empty test* method required to executed the test case class.
|
||||
*/
|
||||
function testDrupalSystemListing() {
|
||||
$this->pass(__CLASS__ . ' test executed.');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
name = "Drupal system listing incompatible test"
|
||||
description = "Support module for testing the drupal_system_listing function."
|
||||
package = Testing
|
||||
version = VERSION
|
||||
; This deliberately has the wrong core version, to test that it does not take
|
||||
; precedence over the version of the same module that is in the
|
||||
; modules/simpletest/tests directory.
|
||||
core = 6.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
|
@ -0,0 +1 @@
|
|||
<?php
|
10
drupal7/web/profiles/testing/testing.info
Normal file
10
drupal7/web/profiles/testing/testing.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
name = Testing
|
||||
description = Minimal profile for running tests. Includes absolutely required modules only.
|
||||
version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2024-03-06
|
||||
version = "7.100"
|
||||
project = "drupal"
|
||||
datestamp = "1709734591"
|
21
drupal7/web/profiles/testing/testing.install
Normal file
21
drupal7/web/profiles/testing/testing.install
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the testing profile.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*
|
||||
* Perform actions to set up the site for this profile.
|
||||
*
|
||||
* @see system_install()
|
||||
*/
|
||||
function testing_install() {
|
||||
// Allow visitor account creation, but with administrative approval.
|
||||
variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
|
||||
|
||||
// Enable default permissions for system roles.
|
||||
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
|
||||
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content'));
|
||||
}
|
6
drupal7/web/profiles/testing/testing.profile
Normal file
6
drupal7/web/profiles/testing/testing.profile
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Installation profile for tests.
|
||||
*/
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue