diff --git a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php index 96254b9..d160d7b 100644 --- a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php +++ b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php @@ -10,7 +10,6 @@ use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; -use Drupal\Tests\field\Kernel\FieldUnitTestBase; /** * Create field storages and fields during config create method invocation. @@ -98,8 +97,8 @@ function testImportCreate() { $this->copyConfig($active, $sync); // Add the new files to the sync directory. - $src_dir = __DIR__ . ' ../../modules/field_test_config/sync'; - $target_dir = config_get_config_directory(CONFIG_SYNC_DIRECTORY]; + $src_dir = __DIR__ . '/../../modules/field_test_config/sync'; + $target_dir = config_get_config_directory(CONFIG_SYNC_DIRECTORY); $this->assertTrue(file_unmanaged_copy("$src_dir/$field_storage_config_name.yml", "$target_dir/$field_storage_config_name.yml")); $this->assertTrue(file_unmanaged_copy("$src_dir/$field_config_name.yml", "$target_dir/$field_config_name.yml")); $this->assertTrue(file_unmanaged_copy("$src_dir/$field_storage_config_name_2.yml", "$target_dir/$field_storage_config_name_2.yml")); diff --git a/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php b/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php index 2ea9640..b96ea79 100644 --- a/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php +++ b/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php @@ -5,7 +5,7 @@ * Contains \Drupal\Tests\simpletest\Unit\TestInfoParsingTest. */ -namespace Drupal\Tests\simpletest\Unit; +namespace Drupal\Tests\simpletest\Unit { use Composer\Autoload\ClassLoader; use Drupal\Core\Extension\Extension; @@ -87,18 +87,18 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', - 'group' => 'field', - 'description' => 'Bulk delete storages and fields, and clean up afterwards.', + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', + 'group' => 'simpletest', + 'description' => 'Tests the Simpletest UI internal browser.', 'type' => 'Simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. + * Tests the Simpletest UI internal browser. * - * @group field + * @group simpletest */ ", ]; @@ -107,18 +107,19 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', - 'group' => 'field', - 'description' => 'Bulk delete storages and fields, and clean up afterwards.', - 'type' => 'Simpletest' + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', + 'group' => 'simpletest', + 'description' => 'Tests the Simpletest UI internal browser.', + 'type' => 'Simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. + * Tests the Simpletest UI internal browser. * - * @group field + * @group simpletest + */ */ ", ]; @@ -128,18 +129,18 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', - 'group' => 'field', - 'description' => 'Bulk delete storages and fields, and clean up afterwards. * @', - 'type' => 'Simpletest' + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', + 'group' => 'simpletest', + 'description' => 'Tests the Simpletest UI internal browser. * @', + 'type' => 'Simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. * @ + * Tests the Simpletest UI internal browser. * @ * - * @group field + * @group simpletest */ ", ]; @@ -148,19 +149,19 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', 'group' => 'Test', - 'description' => 'Bulk delete storages and fields, and clean up afterwards.', - 'type' => 'Simpletest' + 'description' => 'Tests the Simpletest UI internal browser.', + 'type' => 'Simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. + * Tests the Simpletest UI internal browser. * * @group Test - * @group field + * @group simpletest */ ", ]; @@ -169,20 +170,20 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', - 'group' => 'field', - 'description' => 'Bulk delete storages and fields, and clean up afterwards.', + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', + 'description' => 'Tests the Simpletest UI internal browser.', + 'type' => 'Simpletest', 'requires' => ['module' => ['test']], - 'type' => 'Simpletest' + 'group' => 'simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. + * Tests the Simpletest UI internal browser. * * @dependencies test - * @group field + * @group simpletest */ ", ]; @@ -191,20 +192,20 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', - 'group' => 'field', - 'description' => 'Bulk delete storages and fields, and clean up afterwards.', + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', + 'description' => 'Tests the Simpletest UI internal browser.', + 'type' => 'Simpletest', 'requires' => ['module' => ['test', 'test1', 'test2']], - 'type' => 'Simpletest' + 'group' => 'simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. + * Tests the Simpletest UI internal browser. * - * @dependencies test, test1,test2 - * @group field + * @dependencies test, test1, test2 + * @group simpletest */ ", ]; @@ -213,18 +214,19 @@ public function infoParserProvider() { $tests[] = [ // Expected result. [ - 'name' => 'Drupal\KernelTests\field\BulkDeleteTest', - 'group' => 'field', - 'description' => 'Bulk delete storages and fields, and clean up afterwards. And the summary line continues and there is no gap to the annotation.', - 'type' => 'Simpletest' + 'name' => 'Drupal\simpletest\Tests\ExampleSimpleTest', + 'description' => 'Tests the Simpletest UI internal browser. And the summary line continues an there is no gap to the annotation.', + 'type' => 'Simpletest', + 'group' => 'simpletest', ], // Classname. - 'Drupal\KernelTests\field\BulkDeleteTest', + 'Drupal\simpletest\Tests\ExampleSimpleTest', // Doc block. "/** - * Bulk delete storages and fields, and clean up afterwards. And the summary - * line continues and there is no gap to the annotation. - * @group field + * Tests the Simpletest UI internal browser. And the summary line continues an + * there is no gap to the annotation. + * + * @group simpletest */ ", ]; @@ -410,3 +412,19 @@ public function providerTestGetPhpunitTestSuite() { } } + +} + +namespace Drupal\simpletest\Tests { + +use Drupal\simpletest\WebTestBase; + +/** + * Tests the Simpletest UI internal browser. + * + * @group simpletest + */ +class ExampleSimpleTest extends WebTestBase { +} + +}