diff --git a/core/tests/Drupal/BuildTests/Framework/BuildTestBase.php b/core/tests/Drupal/BuildTests/Framework/BuildTestBase.php index b1fea7d324aa460cb6fe2c9dbd40ee30565198e8..313c6f54fa9d07eb3af8eddcbca060d98f8172ca 100644 --- a/core/tests/Drupal/BuildTests/Framework/BuildTestBase.php +++ b/core/tests/Drupal/BuildTests/Framework/BuildTestBase.php @@ -23,6 +23,14 @@ /** * Provides a workspace to test build processes. * + * Module tests extending BuildTestBase must exist in the + * Drupal\Tests\your_module\Build namespace and live in the + * modules/your_module/tests/src/Build directory. + * + * Tests for core/lib/Drupal classes extending BuildTestBase must exist in the + * \Drupal\BuildTests namespace and live in the core/tests/Drupal/BuildTests + * directory. + * * If you need to build a file system and then run a command from the command * line then this is the test framework for you. * diff --git a/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php b/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php index b5e34c99768362f1ea61f574bc4f78438f7d4c1b..53c66638ed45dd995b6e95fa9798389da23ea776 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php @@ -16,6 +16,10 @@ * Drupal\Tests\your_module\FunctionalJavascript namespace and live in the * modules/your_module/tests/src/FunctionalJavascript directory. * + * Tests for core/lib/Drupal classes extending WebDriverTestBase must exist in + * the \Drupal\FunctionalJavascriptTests\Core namespace and live in the + * core/tests/Drupal/FunctionalJavascriptTests directory. + * * Base class for testing browser interaction implemented in JavaScript. * * @ingroup testing diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php index f9da8131eda9c740ccca6e3ebb5d99721696b663..94be1c7ddf7a210de9c18e9c3dc11e71688089f0 100644 --- a/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -47,6 +47,10 @@ * Drupal\Tests\your_module\Kernel namespace and live in the * modules/your_module/tests/src/Kernel directory. * + * Tests for core/lib/Drupal classes extending KernelTestBase must exist in the + * \Drupal\KernelTests\Core namespace and live in the + * core/tests/Drupal/KernelTests directory. + * * This base class should be useful for testing some types of integrations which * don't require the overhead of a fully-installed Drupal instance, but which * have many dependencies on parts of Drupal which can't or shouldn't be mocked. diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php index 2e8e9a103400ef0f9f9891d533ff6acaea7236e0..bb504266871811decd2afec07a239629464ec057 100644 --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -34,6 +34,10 @@ * Drupal\Tests\your_module\Functional namespace and live in the * modules/your_module/tests/src/Functional directory. * + * Tests for core/lib/Drupal classes extending BrowserTestBase must exist in the + * \Drupal\FunctionalTests\Core namespace and live in the + * core/tests/Drupal/FunctionalTests directory. + * * Tests extending this base class should only translate text when testing * translation functionality. For example, avoid wrapping test text with t() * or TranslatableMarkup(). diff --git a/core/tests/Drupal/Tests/UnitTestCase.php b/core/tests/Drupal/Tests/UnitTestCase.php index ff2baec864c682e16c21568e90b40e972202e054..63371281bfe33726a4c8d31fd0ad0cd3a5442b8e 100644 --- a/core/tests/Drupal/Tests/UnitTestCase.php +++ b/core/tests/Drupal/Tests/UnitTestCase.php @@ -19,9 +19,13 @@ /** * Provides a base class and helpers for Drupal unit tests. * - * Module tests extending BrowserTestBase must exist in the - * Drupal\Tests\your_module\Functional namespace and live in the - * modules/your_module/tests/src/Functional directory. + * Module tests extending UnitTestCase must exist in the + * Drupal\Tests\your_module\Unit namespace and live in the + * modules/your_module/tests/src/Unit directory. + * + * Tests for core/lib/Drupal classes extending UnitTestCase must exist in the + * \Drupal\Tests\Core namespace and live in the core/lib/tests/Drupal/Tests/Core + * directory. * * Using Symfony's dump() function in Unit tests will produce output on the * command line.