diff --git a/core/modules/block/src/Tests/BlockInterfaceTest.php b/core/modules/block/src/Tests/BlockInterfaceTest.php index 3c7ecb0243b98f0c99fe415df3c7bf014ee79dfc..769ed8905251722c71b5d2d0420b711840afdd44 100644 --- a/core/modules/block/src/Tests/BlockInterfaceTest.php +++ b/core/modules/block/src/Tests/BlockInterfaceTest.php @@ -8,7 +8,7 @@ namespace Drupal\block\Tests; use Drupal\Core\Form\FormState; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\block\BlockInterface; /** @@ -16,7 +16,7 @@ * * @group block */ -class BlockInterfaceTest extends DrupalUnitTestBase { +class BlockInterfaceTest extends KernelTestBase { public static $modules = array('system', 'block', 'block_test', 'user'); /** diff --git a/core/modules/block/src/Tests/BlockStorageUnitTest.php b/core/modules/block/src/Tests/BlockStorageUnitTest.php index 07b0c7823062f52f0aa2015fd300229f849bc305..b550bcc678d9d3ec74494e372e818b198ae60bac 100644 --- a/core/modules/block/src/Tests/BlockStorageUnitTest.php +++ b/core/modules/block/src/Tests/BlockStorageUnitTest.php @@ -8,7 +8,7 @@ namespace Drupal\block\Tests; use Drupal\Core\Config\Entity\ConfigEntityStorage; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\block_test\Plugin\Block\TestHtmlBlock; use Drupal\Component\Plugin\Exception\PluginException; use Drupal\block\Entity\Block; @@ -19,7 +19,7 @@ * * @group block */ -class BlockStorageUnitTest extends DrupalUnitTestBase { +class BlockStorageUnitTest extends KernelTestBase { /** * Modules to install. diff --git a/core/modules/block/src/Tests/BlockViewBuilderTest.php b/core/modules/block/src/Tests/BlockViewBuilderTest.php index 3760570f9a77168e140bc2a5e436319ae5b89aea..2ddbcab9b04e6b11454afa784d9f909fc181a7c2 100644 --- a/core/modules/block/src/Tests/BlockViewBuilderTest.php +++ b/core/modules/block/src/Tests/BlockViewBuilderTest.php @@ -10,7 +10,7 @@ use Drupal\Component\Utility\Html; use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\UrlCacheContext; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Drupal\block\Entity\Block; @@ -20,7 +20,7 @@ * * @group block */ -class BlockViewBuilderTest extends DrupalUnitTestBase { +class BlockViewBuilderTest extends KernelTestBase { /** * Modules to install. diff --git a/core/modules/config/src/Tests/ConfigCRUDTest.php b/core/modules/config/src/Tests/ConfigCRUDTest.php index 9ed6d942c52b0f9cd47b0133b996edb1cef52603..57d556a7157dc15351f0a5ab929bf9738a37ae37 100644 --- a/core/modules/config/src/Tests/ConfigCRUDTest.php +++ b/core/modules/config/src/Tests/ConfigCRUDTest.php @@ -11,7 +11,7 @@ use Drupal\Core\Config\ConfigNameException; use Drupal\Core\Config\ConfigValueException; use Drupal\Core\Config\InstallStorage; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Config\FileStorage; use Drupal\Core\Config\DatabaseStorage; use Drupal\Core\Config\UnsupportedDataTypeConfigException; @@ -21,7 +21,7 @@ * * @group config */ -class ConfigCRUDTest extends DrupalUnitTestBase { +class ConfigCRUDTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigDependencyTest.php b/core/modules/config/src/Tests/ConfigDependencyTest.php index fa903b9fe149416715a4948f3b92f06a8babed74..88abef7dfa102d7b90fd3179444fa19f16efffe3 100644 --- a/core/modules/config/src/Tests/ConfigDependencyTest.php +++ b/core/modules/config/src/Tests/ConfigDependencyTest.php @@ -7,14 +7,14 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests for configuration dependencies. * * @group config */ -class ConfigDependencyTest extends DrupalUnitTestBase { +class ConfigDependencyTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigDiffTest.php b/core/modules/config/src/Tests/ConfigDiffTest.php index 7fda71667719c9ae5367ace6363888e4b9ce2c38..10f6902549e85952be2a421bf9005ef73a44a75e 100644 --- a/core/modules/config/src/Tests/ConfigDiffTest.php +++ b/core/modules/config/src/Tests/ConfigDiffTest.php @@ -7,14 +7,14 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Calculating the difference between two sets of configuration. * * @group config */ -class ConfigDiffTest extends DrupalUnitTestBase { +class ConfigDiffTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigEntityStatusTest.php b/core/modules/config/src/Tests/ConfigEntityStatusTest.php index 3ad7bfbc00671440b8450ccedd9f8a9968096a10..caad7676e02bbc9981e27a095f1d793bf7334545 100644 --- a/core/modules/config/src/Tests/ConfigEntityStatusTest.php +++ b/core/modules/config/src/Tests/ConfigEntityStatusTest.php @@ -7,14 +7,14 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests configuration entity status functionality. * * @group config */ -class ConfigEntityStatusTest extends DrupalUnitTestBase { +class ConfigEntityStatusTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigEntityStorageTest.php b/core/modules/config/src/Tests/ConfigEntityStorageTest.php index 0965fea1f7d47a792b6e8a590a426d77ec4eb40d..19bf95947cde3959836788cd471768ce4fa2b659 100644 --- a/core/modules/config/src/Tests/ConfigEntityStorageTest.php +++ b/core/modules/config/src/Tests/ConfigEntityStorageTest.php @@ -7,7 +7,7 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Config\ConfigDuplicateUUIDException; /** @@ -16,7 +16,7 @@ * * @group config */ -class ConfigEntityStorageTest extends DrupalUnitTestBase { +class ConfigEntityStorageTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigEntityUnitTest.php b/core/modules/config/src/Tests/ConfigEntityUnitTest.php index b9daa6cd0287897205f60f31ea2be45e046086c0..e543c41729940073147cc226ee2dd91e60ff589a 100644 --- a/core/modules/config/src/Tests/ConfigEntityUnitTest.php +++ b/core/modules/config/src/Tests/ConfigEntityUnitTest.php @@ -8,14 +8,14 @@ namespace Drupal\config\Tests; use Drupal\Core\Entity\EntityInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Unit tests for configuration entity base methods. * * @group config */ -class ConfigEntityUnitTest extends DrupalUnitTestBase { +class ConfigEntityUnitTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigEventsTest.php b/core/modules/config/src/Tests/ConfigEventsTest.php index 93ef6275f1dae6680b9e312997e1d9231c574e6f..b4f72794ad1addc97227598db557d3cea930f69e 100644 --- a/core/modules/config/src/Tests/ConfigEventsTest.php +++ b/core/modules/config/src/Tests/ConfigEventsTest.php @@ -9,14 +9,14 @@ use Drupal\Core\Config\Config; use Drupal\Core\Config\ConfigEvents; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests events fired on configuration objects. * * @group config */ -class ConfigEventsTest extends DrupalUnitTestBase { +class ConfigEventsTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigFileContentTest.php b/core/modules/config/src/Tests/ConfigFileContentTest.php index 0f5b8d05eab1369e1279da2a11942b14eebbb373..35ca948a350e5c5309b28dc024656e82489f0ce0 100644 --- a/core/modules/config/src/Tests/ConfigFileContentTest.php +++ b/core/modules/config/src/Tests/ConfigFileContentTest.php @@ -8,14 +8,14 @@ namespace Drupal\config\Tests; use Drupal\Core\Config\FileStorage; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests reading and writing of configuration files. * * @group config */ -class ConfigFileContentTest extends DrupalUnitTestBase { +class ConfigFileContentTest extends KernelTestBase { /** * Tests setting, writing, and reading of a configuration setting. */ diff --git a/core/modules/config/src/Tests/ConfigImportRecreateTest.php b/core/modules/config/src/Tests/ConfigImportRecreateTest.php index 65fd79997d99144dbe4599e49d54216c45099dbc..e1a607a0a7a26cfb2290cad4a8c7873fd030bf0f 100644 --- a/core/modules/config/src/Tests/ConfigImportRecreateTest.php +++ b/core/modules/config/src/Tests/ConfigImportRecreateTest.php @@ -10,14 +10,14 @@ use Drupal\Component\Utility\Unicode; use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\StorageComparer; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests importing recreated configuration entities. * * @group config */ -class ConfigImportRecreateTest extends DrupalUnitTestBase { +class ConfigImportRecreateTest extends KernelTestBase { /** * Config Importer object used for testing. diff --git a/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php b/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php index 6639d5b3777f6be0fd9f4134f1fd2dd689ab34d0..ea2facebd3acef80b01298d60a8b0525ab2ed462 100644 --- a/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php +++ b/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php @@ -13,14 +13,14 @@ use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporterException; use Drupal\Core\Config\StorageComparer; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests validating renamed configuration in a configuration import. * * @group config */ -class ConfigImportRenameValidationTest extends DrupalUnitTestBase { +class ConfigImportRenameValidationTest extends KernelTestBase { /** * Config Importer object used for testing. diff --git a/core/modules/config/src/Tests/ConfigImporterTest.php b/core/modules/config/src/Tests/ConfigImporterTest.php index 8907fc2a9fe15885de5b728a015641b73512c008..65efbf5cd620930690e0aaf9c937863589c1aa47 100644 --- a/core/modules/config/src/Tests/ConfigImporterTest.php +++ b/core/modules/config/src/Tests/ConfigImporterTest.php @@ -11,14 +11,14 @@ use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporterException; use Drupal\Core\Config\StorageComparer; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests importing configuration from files into active configuration. * * @group config */ -class ConfigImporterTest extends DrupalUnitTestBase { +class ConfigImporterTest extends KernelTestBase { /** * Config Importer object used for testing. diff --git a/core/modules/config/src/Tests/ConfigInstallTest.php b/core/modules/config/src/Tests/ConfigInstallTest.php index e28463824c138a1ea8fc326910c4febcb120ed63..532d19494412d4349af19eccdd882beff33a0b78 100644 --- a/core/modules/config/src/Tests/ConfigInstallTest.php +++ b/core/modules/config/src/Tests/ConfigInstallTest.php @@ -7,7 +7,7 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests installation of configuration objects in installation functionality. @@ -15,7 +15,7 @@ * @group config * @see \Drupal\Core\Config\ConfigInstaller */ -class ConfigInstallTest extends DrupalUnitTestBase { +class ConfigInstallTest extends KernelTestBase { protected function setUp() { parent::setUp(); diff --git a/core/modules/config/src/Tests/ConfigLanguageOverrideTest.php b/core/modules/config/src/Tests/ConfigLanguageOverrideTest.php index 1a95b3f34b6d3a45222c9f2aefe65f930b213109..2371a88a16aab8c8a879782a42b6b79235439efe 100644 --- a/core/modules/config/src/Tests/ConfigLanguageOverrideTest.php +++ b/core/modules/config/src/Tests/ConfigLanguageOverrideTest.php @@ -8,14 +8,14 @@ namespace Drupal\config\Tests; use Drupal\language\Entity\ConfigurableLanguage; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Confirm that language overrides work. * * @group config */ -class ConfigLanguageOverrideTest extends DrupalUnitTestBase { +class ConfigLanguageOverrideTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigModuleOverridesTest.php b/core/modules/config/src/Tests/ConfigModuleOverridesTest.php index a5a51019fa6178ae71953b065e82b5e8ccd46d3b..3a663d5c096bce9d378ab4dfae6b39b60a95064b 100644 --- a/core/modules/config/src/Tests/ConfigModuleOverridesTest.php +++ b/core/modules/config/src/Tests/ConfigModuleOverridesTest.php @@ -7,14 +7,14 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests module overrides of configuration using event subscribers. * * @group config */ -class ConfigModuleOverridesTest extends DrupalUnitTestBase { +class ConfigModuleOverridesTest extends KernelTestBase { public static $modules = array('system', 'config', 'config_override_test'); diff --git a/core/modules/config/src/Tests/ConfigOverrideTest.php b/core/modules/config/src/Tests/ConfigOverrideTest.php index 70bbee7d067178c19fd903c07ee3ae64a52d42fa..38ba0a1e581fc0fad4368988378c40620ec2ba79 100644 --- a/core/modules/config/src/Tests/ConfigOverrideTest.php +++ b/core/modules/config/src/Tests/ConfigOverrideTest.php @@ -7,14 +7,14 @@ namespace Drupal\config\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests configuration overrides via $config in settings.php. * * @group config */ -class ConfigOverrideTest extends DrupalUnitTestBase { +class ConfigOverrideTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php b/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php index 3e6e288d68bebaca312e96f1a5078a252b0130b3..52e865d382eefcd73ace18f36fed1de8ce034ac9 100644 --- a/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php +++ b/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php @@ -8,7 +8,7 @@ namespace Drupal\config\Tests; use Drupal\Core\Language\Language; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests that language, module and settings.php are applied in the correct @@ -16,7 +16,7 @@ * * @group config */ -class ConfigOverridesPriorityTest extends DrupalUnitTestBase { +class ConfigOverridesPriorityTest extends KernelTestBase { public static $modules = array('system', 'config', 'config_override_test', 'language'); diff --git a/core/modules/config/src/Tests/ConfigSchemaTest.php b/core/modules/config/src/Tests/ConfigSchemaTest.php index 7005002505c239f1ee5c79859679232ba64517ad..202b55225830bcdd49e03e79f459afa6472d8097 100644 --- a/core/modules/config/src/Tests/ConfigSchemaTest.php +++ b/core/modules/config/src/Tests/ConfigSchemaTest.php @@ -11,14 +11,14 @@ use Drupal\Core\Config\InstallStorage; use Drupal\Core\TypedData\Type\IntegerInterface; use Drupal\Core\TypedData\Type\StringInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests schema for configuration objects. * * @group config */ -class ConfigSchemaTest extends DrupalUnitTestBase { +class ConfigSchemaTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/ConfigSnapshotTest.php b/core/modules/config/src/Tests/ConfigSnapshotTest.php index a7d6edad024e22cc7581f3ae2e548e9cf9a01541..b3789d664f27e30060ce7e16da6b8b752dff54f8 100644 --- a/core/modules/config/src/Tests/ConfigSnapshotTest.php +++ b/core/modules/config/src/Tests/ConfigSnapshotTest.php @@ -8,14 +8,14 @@ namespace Drupal\config\Tests; use Drupal\Core\Config\StorageComparer; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests config snapshot creation and updating. * * @group config */ -class ConfigSnapshotTest extends DrupalUnitTestBase { +class ConfigSnapshotTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/config/src/Tests/Storage/ConfigStorageTestBase.php b/core/modules/config/src/Tests/Storage/ConfigStorageTestBase.php index e3c4e76e1d52f6e7746ff6cce5ac6397efef5a21..7f07483d835a32b5bd2e9253177973dd17321c71 100644 --- a/core/modules/config/src/Tests/Storage/ConfigStorageTestBase.php +++ b/core/modules/config/src/Tests/Storage/ConfigStorageTestBase.php @@ -7,7 +7,7 @@ namespace Drupal\config\Tests\Storage; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Base class for testing storage operations. @@ -21,7 +21,7 @@ * supply the necessary helper methods to interact with the raw/native storage * directly. */ -abstract class ConfigStorageTestBase extends DrupalUnitTestBase { +abstract class ConfigStorageTestBase extends KernelTestBase { /** * @var \Drupal\Core\Config\StorageInterface; diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php index b05b4466344a6b0808d1efb2956e4e294b2c4340..1a2793fb4002ac573187c5b0a6d800317d3223e4 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php @@ -7,7 +7,7 @@ namespace Drupal\content_translation\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\content_translation\FieldTranslationSynchronizer; /** @@ -15,7 +15,7 @@ * * @group content_translation */ -class ContentTranslationSyncUnitTest extends DrupalUnitTestBase { +class ContentTranslationSyncUnitTest extends KernelTestBase { /** * The synchronizer class to be tested. diff --git a/core/modules/file/src/Tests/FileManagedUnitTestBase.php b/core/modules/file/src/Tests/FileManagedUnitTestBase.php index 051601aee5b551a04d5f27cd20a4e6d6ebfe16ed..cd07552f04a961000fcae11e7275934b0cf6e2be 100644 --- a/core/modules/file/src/Tests/FileManagedUnitTestBase.php +++ b/core/modules/file/src/Tests/FileManagedUnitTestBase.php @@ -8,13 +8,13 @@ namespace Drupal\file\Tests; use Drupal\file\FileInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Base class for file unit tests that use the file_test module to test uploads and * hooks. */ -abstract class FileManagedUnitTestBase extends DrupalUnitTestBase { +abstract class FileManagedUnitTestBase extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/hal/src/Tests/NormalizerTestBase.php b/core/modules/hal/src/Tests/NormalizerTestBase.php index 68651f5b82172106e6764e0da477628b62253c27..5e721826c63887e1675dcd47ed315f7e6c8836ba 100644 --- a/core/modules/hal/src/Tests/NormalizerTestBase.php +++ b/core/modules/hal/src/Tests/NormalizerTestBase.php @@ -20,13 +20,13 @@ use Drupal\serialization\EntityResolver\ChainEntityResolver; use Drupal\serialization\EntityResolver\TargetIdResolver; use Drupal\serialization\EntityResolver\UuidResolver; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Symfony\Component\Serializer\Serializer; /** * Test the HAL normalizer. */ -abstract class NormalizerTestBase extends DrupalUnitTestBase { +abstract class NormalizerTestBase extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/language/src/Tests/Condition/LanguageConditionTest.php b/core/modules/language/src/Tests/Condition/LanguageConditionTest.php index 882a15499233e9d82732a447a36135798246e3f1..9cd3cf9d4e96fe7dc65e06072ce81289626f1f45 100644 --- a/core/modules/language/src/Tests/Condition/LanguageConditionTest.php +++ b/core/modules/language/src/Tests/Condition/LanguageConditionTest.php @@ -8,7 +8,7 @@ namespace Drupal\language\Tests\Condition; use Drupal\language\Entity\ConfigurableLanguage; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Condition\ConditionManager; /** @@ -17,7 +17,7 @@ * * @group language */ -class LanguageConditionTest extends DrupalUnitTestBase { +class LanguageConditionTest extends KernelTestBase { /** * The condition plugin manager. diff --git a/core/modules/language/src/Tests/LanguageTestBase.php b/core/modules/language/src/Tests/LanguageTestBase.php index 7c7cb260ac3cc510d98f6aa90474eeba5083b43d..b07c36f1beaf63b8c4845d6a66e41bb82cf5121b 100644 --- a/core/modules/language/src/Tests/LanguageTestBase.php +++ b/core/modules/language/src/Tests/LanguageTestBase.php @@ -7,12 +7,12 @@ namespace Drupal\language\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Test for dependency injected language object. */ -abstract class LanguageTestBase extends DrupalUnitTestBase { +abstract class LanguageTestBase extends KernelTestBase { public static $modules = array('system', 'language', 'language_test'); /** diff --git a/core/modules/node/src/Tests/Config/NodeImportChangeTest.php b/core/modules/node/src/Tests/Config/NodeImportChangeTest.php index 53d3d48ee8a97a5024d97f18c40766753fc209bb..5df5486ecaed238aebc23e7526fbbbeeefef4bc1 100644 --- a/core/modules/node/src/Tests/Config/NodeImportChangeTest.php +++ b/core/modules/node/src/Tests/Config/NodeImportChangeTest.php @@ -7,14 +7,14 @@ namespace Drupal\node\Tests\Config; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Change content types during config create method invocation. * * @group node */ -class NodeImportChangeTest extends DrupalUnitTestBase { +class NodeImportChangeTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/node/src/Tests/Config/NodeImportCreateTest.php b/core/modules/node/src/Tests/Config/NodeImportCreateTest.php index 209c8afff879b8b8daaa00281d8f943a08264631..99f4e56ff042058562f59d9a2564a23a7730afd8 100644 --- a/core/modules/node/src/Tests/Config/NodeImportCreateTest.php +++ b/core/modules/node/src/Tests/Config/NodeImportCreateTest.php @@ -8,14 +8,14 @@ namespace Drupal\node\Tests\Config; use Drupal\field\Entity\FieldConfig; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Create content types during config create method invocation. * * @group node */ -class NodeImportCreateTest extends DrupalUnitTestBase { +class NodeImportCreateTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/node/src/Tests/NodeLastChangedTest.php b/core/modules/node/src/Tests/NodeLastChangedTest.php index dd308c6efea41c0fc6cc37f300f6381022f06d20..4444cc1111be8245e0415c50c7513142dfd295f1 100644 --- a/core/modules/node/src/Tests/NodeLastChangedTest.php +++ b/core/modules/node/src/Tests/NodeLastChangedTest.php @@ -7,14 +7,14 @@ namespace Drupal\node\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the node_last_changed() function. * * @group node */ -class NodeLastChangedTest extends DrupalUnitTestBase { +class NodeLastChangedTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/quickedit/src/Tests/QuickEditTestBase.php b/core/modules/quickedit/src/Tests/QuickEditTestBase.php index 614c52f785e173ce58b0b437ef90437217c6eaff..e08ec2ee39274040cc7c4541e6850507c29a9651 100644 --- a/core/modules/quickedit/src/Tests/QuickEditTestBase.php +++ b/core/modules/quickedit/src/Tests/QuickEditTestBase.php @@ -7,12 +7,12 @@ namespace Drupal\quickedit\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Base class for testing Quick Edit functionality. */ -abstract class QuickEditTestBase extends DrupalUnitTestBase { +abstract class QuickEditTestBase extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/rdf/src/Tests/CrudTest.php b/core/modules/rdf/src/Tests/CrudTest.php index 49c14b7802bdee157f4acb42f57b8af0281727e2..0779f75d993aa52d807f89a1341ea72b94d41104 100644 --- a/core/modules/rdf/src/Tests/CrudTest.php +++ b/core/modules/rdf/src/Tests/CrudTest.php @@ -7,14 +7,14 @@ namespace Drupal\rdf\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the RDF mapping CRUD functions. * * @group rdf */ -class CrudTest extends DrupalUnitTestBase { +class CrudTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/rdf/src/Tests/RdfaAttributesTest.php b/core/modules/rdf/src/Tests/RdfaAttributesTest.php index 3da1c657abfbc7085f87e1a989d0bdd1e395e669..fb167c3b7b6ad3245c12ff6f23f6facd2052be31 100644 --- a/core/modules/rdf/src/Tests/RdfaAttributesTest.php +++ b/core/modules/rdf/src/Tests/RdfaAttributesTest.php @@ -7,14 +7,14 @@ namespace Drupal\rdf\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests RDFa attribute generation from RDF mapping. * * @group rdf */ -class RdfaAttributesTest extends DrupalUnitTestBase { +class RdfaAttributesTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/serialization/src/Tests/NormalizerTestBase.php b/core/modules/serialization/src/Tests/NormalizerTestBase.php index 5e1c372c9681615bda2f6c59d143f8e849db6466..3078f8492be563318cc0eb22898bc789e7c543f7 100644 --- a/core/modules/serialization/src/Tests/NormalizerTestBase.php +++ b/core/modules/serialization/src/Tests/NormalizerTestBase.php @@ -7,9 +7,9 @@ namespace Drupal\serialization\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; -abstract class NormalizerTestBase extends DrupalUnitTestBase { +abstract class NormalizerTestBase extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/serialization/src/Tests/SerializationTest.php b/core/modules/serialization/src/Tests/SerializationTest.php index 772999c70497da519d088b3552d12ee925b122d8..cc9589ad736e7c5e1ff34176a51d16524b824b73 100644 --- a/core/modules/serialization/src/Tests/SerializationTest.php +++ b/core/modules/serialization/src/Tests/SerializationTest.php @@ -7,7 +7,7 @@ namespace Drupal\serialization\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Symfony\Component\Serializer\Exception\UnexpectedValueException; /** @@ -15,7 +15,7 @@ * * @group serialization */ -class SerializationTest extends DrupalUnitTestBase { +class SerializationTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Action/ActionUnitTest.php b/core/modules/system/src/Tests/Action/ActionUnitTest.php index d442399bd83c607807f4223fe7ecb96a99fb5adc..28925bbfd6981839e0203866d2065aa4eb3150bc 100644 --- a/core/modules/system/src/Tests/Action/ActionUnitTest.php +++ b/core/modules/system/src/Tests/Action/ActionUnitTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Action; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Action\ActionInterface; /** @@ -15,7 +15,7 @@ * * @group Action */ -class ActionUnitTest extends DrupalUnitTestBase { +class ActionUnitTest extends KernelTestBase { /** * {@inheritdoc} diff --git a/core/modules/system/src/Tests/Cache/DatabaseBackendTagTest.php b/core/modules/system/src/Tests/Cache/DatabaseBackendTagTest.php index c832ded9a25c379fe6a8af7eb1a7a15050aa3330..e2b9d374ecb9e4e861b9ed0524cd0128f09679ba 100644 --- a/core/modules/system/src/Tests/Cache/DatabaseBackendTagTest.php +++ b/core/modules/system/src/Tests/Cache/DatabaseBackendTagTest.php @@ -9,7 +9,7 @@ use Drupal\Core\Cache\Cache; use Drupal\Core\DependencyInjection\ContainerBuilder; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Symfony\Component\DependencyInjection\Reference; /** @@ -17,7 +17,7 @@ * * @group Cache */ -class DatabaseBackendTagTest extends DrupalUnitTestBase { +class DatabaseBackendTagTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php index 91b75ba5c47cb241b4a870791e23d8f2ea413fd5..97d7ccd6113ab5f17b944a266ffc6049f407eff4 100644 --- a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php @@ -9,7 +9,7 @@ use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\CacheBackendInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests any cache backend. @@ -21,7 +21,7 @@ * @see DatabaseBackendUnitTestCase * For a full working implementation. */ -abstract class GenericCacheBackendUnitTestBase extends DrupalUnitTestBase { +abstract class GenericCacheBackendUnitTestBase extends KernelTestBase { /** * Array of objects implementing Drupal\Core\Cache\CacheBackendInterface. diff --git a/core/modules/system/src/Tests/Common/CascadingStylesheetsTest.php b/core/modules/system/src/Tests/Common/CascadingStylesheetsTest.php index d319de3f4f4f4093805113319505ff593bb466ee..658cc2981d5bbe6a61510984e01df51600d90c41 100644 --- a/core/modules/system/src/Tests/Common/CascadingStylesheetsTest.php +++ b/core/modules/system/src/Tests/Common/CascadingStylesheetsTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\Common; use Drupal\Component\Utility\String; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests adding various cascading stylesheets to the page. * * @group Common */ -class CascadingStylesheetsTest extends DrupalUnitTestBase { +class CascadingStylesheetsTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Common/JavaScriptTest.php b/core/modules/system/src/Tests/Common/JavaScriptTest.php index a59d50effa6a5f2f6d82533a37b38f2bface4cb4..9c924fdc3680cdd898112733a6fd8e3807252aae 100644 --- a/core/modules/system/src/Tests/Common/JavaScriptTest.php +++ b/core/modules/system/src/Tests/Common/JavaScriptTest.php @@ -9,7 +9,7 @@ use Drupal\Component\Serialization\Json; use Drupal\Component\Utility\Unicode; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Component\Utility\Crypt; /** @@ -17,7 +17,7 @@ * * @group Common */ -class JavaScriptTest extends DrupalUnitTestBase { +class JavaScriptTest extends KernelTestBase { /** * Enable Language and SimpleTest in the test environment. diff --git a/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php b/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php index 51d7c6234b77eb7277b80b240a8c80d5758cae57..20a4401b09cc8e3faff3de3511c10eef3b790d48 100644 --- a/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php +++ b/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Common; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the merging of attachments. @@ -16,7 +16,7 @@ * * @group Common */ -class MergeAttachmentsTest extends DrupalUnitTestBase { +class MergeAttachmentsTest extends KernelTestBase { /** * Tests justs library asset merging. diff --git a/core/modules/system/src/Tests/Common/RenderElementTypesTest.php b/core/modules/system/src/Tests/Common/RenderElementTypesTest.php index c9d609c77fc6c4b7148d74f23cf2da69c791d2f5..4484ea5476032b68e9368ae421cf2828c78f564c 100644 --- a/core/modules/system/src/Tests/Common/RenderElementTypesTest.php +++ b/core/modules/system/src/Tests/Common/RenderElementTypesTest.php @@ -9,14 +9,14 @@ use Drupal\Component\Utility\String; use Drupal\Core\Url; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the markup of core render element types passed to drupal_render(). * * @group Common */ -class RenderElementTypesTest extends DrupalUnitTestBase { +class RenderElementTypesTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Common/RenderTest.php b/core/modules/system/src/Tests/Common/RenderTest.php index 206f0a568a62971a5f20c34d778e29db6d7152e6..a1d7523bbc4838d5fd0aa521c400fe22cc596787 100644 --- a/core/modules/system/src/Tests/Common/RenderTest.php +++ b/core/modules/system/src/Tests/Common/RenderTest.php @@ -11,14 +11,14 @@ use Drupal\Component\Utility\Html; use Drupal\Core\Render\Element; use Drupal\Core\Url; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Performs functional tests on drupal_render(). * * @group Common */ -class RenderTest extends DrupalUnitTestBase { +class RenderTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Common/SystemListingTest.php b/core/modules/system/src/Tests/Common/SystemListingTest.php index 6b2e1bb318f358e6dea54fd8aa69682f2f7d413f..861a1df52aaf03e8cb08dd35d518a5ca3ae92f6c 100644 --- a/core/modules/system/src/Tests/Common/SystemListingTest.php +++ b/core/modules/system/src/Tests/Common/SystemListingTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\Common; use Drupal\Core\Extension\ExtensionDiscovery; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests scanning system directories in drupal_system_listing(). * * @group Common */ -class SystemListingTest extends DrupalUnitTestBase { +class SystemListingTest extends KernelTestBase { /** * Tests that files in different directories take precedence as expected. */ diff --git a/core/modules/system/src/Tests/Common/XssUnitTest.php b/core/modules/system/src/Tests/Common/XssUnitTest.php index 6f22713008cd4d5703954a2a37c6d142e4243650..511dcc6852fa98c21d3c1c1e38b42f4988835354 100644 --- a/core/modules/system/src/Tests/Common/XssUnitTest.php +++ b/core/modules/system/src/Tests/Common/XssUnitTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Common; use Drupal\Component\Utility\UrlHelper; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Confirm that \Drupal\Component\Utility\Xss::filter() and check_url() work @@ -16,7 +16,7 @@ * * @group Common */ -class XssUnitTest extends DrupalUnitTestBase { +class XssUnitTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Database/DatabaseTestBase.php b/core/modules/system/src/Tests/Database/DatabaseTestBase.php index 4a190f617f42943a9c3c376f6b3bebd0d8a5cddb..524e0e8aa8b4d26f41f65b814040637e8e07033f 100644 --- a/core/modules/system/src/Tests/Database/DatabaseTestBase.php +++ b/core/modules/system/src/Tests/Database/DatabaseTestBase.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Database; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Base class for databases database tests. @@ -15,7 +15,7 @@ * Because all database tests share the same test data, we can centralize that * here. */ -abstract class DatabaseTestBase extends DrupalUnitTestBase { +abstract class DatabaseTestBase extends KernelTestBase { public static $modules = array('database_test'); diff --git a/core/modules/system/src/Tests/Database/NextIdTest.php b/core/modules/system/src/Tests/Database/NextIdTest.php index 584b7deeb03f3788ed4d9b3fd8d82788a89fd51d..d7456c7b2f3b404321876012a49c74e648564978 100644 --- a/core/modules/system/src/Tests/Database/NextIdTest.php +++ b/core/modules/system/src/Tests/Database/NextIdTest.php @@ -7,14 +7,14 @@ namespace Drupal\system\Tests\Database; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the sequences API. * * @group Database */ -class NextIdTest extends DrupalUnitTestBase { +class NextIdTest extends KernelTestBase { /** * The modules to enable. diff --git a/core/modules/system/src/Tests/DrupalKernel/DrupalKernelSiteTest.php b/core/modules/system/src/Tests/DrupalKernel/DrupalKernelSiteTest.php index 1a719d2f45a8351eed208322b29ff808f094f8ad..59ee3f34dc0d6fc1e50cf5a42204a3f9b045628d 100644 --- a/core/modules/system/src/Tests/DrupalKernel/DrupalKernelSiteTest.php +++ b/core/modules/system/src/Tests/DrupalKernel/DrupalKernelSiteTest.php @@ -7,14 +7,14 @@ namespace Drupal\system\Tests\DrupalKernel; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests site-specific service overrides. * * @group DrupalKernel */ -class DrupalKernelSiteTest extends DrupalUnitTestBase { +class DrupalKernelSiteTest extends KernelTestBase { /** * Tests services.yml in site directory. @@ -22,8 +22,8 @@ class DrupalKernelSiteTest extends DrupalUnitTestBase { public function testServicesYml() { $this->assertFalse($this->container->has('site.service.yml')); // A service provider class always has precedence over services.yml files. - // DrupalUnitTestBase::buildContainer() swaps out many services with - // in-memory implementations already, so those cannot be tested. + // KernelTestBase::buildContainer() swaps out many services with in-memory + // implementations already, so those cannot be tested. $this->assertIdentical(get_class($this->container->get('cache.backend.database')), 'Drupal\Core\Cache\DatabaseBackendFactory'); $class = __CLASS__; diff --git a/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php b/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php index b97b1c92dbf01e051348fae06737c6cd2aa46acc..4fdc9b7b4d05c7791c8dedf57014e3bc77c360fe 100644 --- a/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php +++ b/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\DrupalKernel; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Event\PostResponseEvent; @@ -16,7 +16,7 @@ * * @group DrupalKernel */ -class ServiceDestructionTest extends DrupalUnitTestBase { +class ServiceDestructionTest extends KernelTestBase { /** * Verifies that services are destructed when used. diff --git a/core/modules/system/src/Tests/Entity/BundleConstraintValidatorTest.php b/core/modules/system/src/Tests/Entity/BundleConstraintValidatorTest.php index 16e03a83e0c93878f6f84225dd11814139875bcc..be2dc48639c10fbcc0d0b82b549c2a82acd7cb77 100644 --- a/core/modules/system/src/Tests/Entity/BundleConstraintValidatorTest.php +++ b/core/modules/system/src/Tests/Entity/BundleConstraintValidatorTest.php @@ -8,7 +8,7 @@ namespace Drupal\system\Tests\Entity; use Drupal\Core\TypedData\DataDefinition; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\system\Tests\TypedData; /** @@ -16,7 +16,7 @@ * * @group Entity */ -class BundleConstraintValidatorTest extends DrupalUnitTestBase { +class BundleConstraintValidatorTest extends KernelTestBase { /** * The typed data manager to use. diff --git a/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php b/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php index 1bd8f201cc0c19813e62676dc17d8d2e294fb080..7641cf2f33314fd6be37da628f448e589d44f1af 100644 --- a/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php +++ b/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Entity; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests Config Entity Query functionality. @@ -15,7 +15,7 @@ * @group Entity * @see \Drupal\Core\Config\Entity\Query */ -class ConfigEntityQueryTest extends DrupalUnitTestBase { +class ConfigEntityQueryTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Entity/EntityTypedDataDefinitionTest.php b/core/modules/system/src/Tests/Entity/EntityTypedDataDefinitionTest.php index 23318a0d26b3cc3679ef458c45c4b26638fbde49..d71ca150cadca1b2be135373f50fd65f24ac3325 100644 --- a/core/modules/system/src/Tests/Entity/EntityTypedDataDefinitionTest.php +++ b/core/modules/system/src/Tests/Entity/EntityTypedDataDefinitionTest.php @@ -15,14 +15,14 @@ use Drupal\Core\TypedData\DataReferenceDefinition; use Drupal\Core\TypedData\DataReferenceDefinitionInterface; use Drupal\Core\TypedData\ListDataDefinitionInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests deriving metadata of entity and field data types. * * @group Entity */ -class EntityTypedDataDefinitionTest extends DrupalUnitTestBase { +class EntityTypedDataDefinitionTest extends KernelTestBase { /** * The typed data manager to use. diff --git a/core/modules/system/src/Tests/Entity/EntityUnitTestBase.php b/core/modules/system/src/Tests/Entity/EntityUnitTestBase.php index 235373ec00e0b5d0aba898263897ab66e8b63fe0..ff89b9192ec1b795701b10d6aaf86c00ebc4e54d 100644 --- a/core/modules/system/src/Tests/Entity/EntityUnitTestBase.php +++ b/core/modules/system/src/Tests/Entity/EntityUnitTestBase.php @@ -7,13 +7,13 @@ namespace Drupal\system\Tests\Entity; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Entity\EntityInterface; /** * Defines an abstract test base for entity unit tests. */ -abstract class EntityUnitTestBase extends DrupalUnitTestBase { +abstract class EntityUnitTestBase extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Entity/FieldAccessTest.php b/core/modules/system/src/Tests/Entity/FieldAccessTest.php index 61faabccddaa79580fde9b0c2914e3372db5a643..b44d84a97d49c50d1d04c3f99e8a7341eb507066 100644 --- a/core/modules/system/src/Tests/Entity/FieldAccessTest.php +++ b/core/modules/system/src/Tests/Entity/FieldAccessTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\Entity; use Drupal\Core\Access\AccessResult; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests Field level access hooks. * * @group Entity */ -class FieldAccessTest extends DrupalUnitTestBase { +class FieldAccessTest extends KernelTestBase { /** * Modules to load code from. diff --git a/core/modules/system/src/Tests/Extension/InfoParserUnitTest.php b/core/modules/system/src/Tests/Extension/InfoParserUnitTest.php index 17c441f82acf042e3e5c3e2bd944fe685b103328..b9252857ddfd976a44eb9beabd1d51771b1e480f 100644 --- a/core/modules/system/src/Tests/Extension/InfoParserUnitTest.php +++ b/core/modules/system/src/Tests/Extension/InfoParserUnitTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Extension; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Extension\InfoParser; use Drupal\Core\Extension\InfoParserException; @@ -20,7 +20,7 @@ * * @group Extension */ -class InfoParserUnitTest extends DrupalUnitTestBase { +class InfoParserUnitTest extends KernelTestBase { /** * The InfoParser object. diff --git a/core/modules/system/src/Tests/Extension/ThemeHandlerTest.php b/core/modules/system/src/Tests/Extension/ThemeHandlerTest.php index 1d382c77a1d6996fd33affef138d2728b0c1800c..50d299c05dceaf29c456c304a051e519589203bc 100644 --- a/core/modules/system/src/Tests/Extension/ThemeHandlerTest.php +++ b/core/modules/system/src/Tests/Extension/ThemeHandlerTest.php @@ -9,14 +9,14 @@ use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Core\Extension\ExtensionNameLengthException; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests installing and uninstalling of themes. * * @group Extension */ -class ThemeHandlerTest extends DrupalUnitTestBase { +class ThemeHandlerTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/File/FileTestBase.php b/core/modules/system/src/Tests/File/FileTestBase.php index 2571a962afdc83a672059b984834a2aa084cefaa..8e51ffffd1080bebee1853600b6d7ab148add597 100644 --- a/core/modules/system/src/Tests/File/FileTestBase.php +++ b/core/modules/system/src/Tests/File/FileTestBase.php @@ -7,13 +7,13 @@ namespace Drupal\system\Tests\File; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Base class for file tests that adds some additional file specific * assertions and helper functions. */ -abstract class FileTestBase extends DrupalUnitTestBase { +abstract class FileTestBase extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/File/HtaccessUnitTest.php b/core/modules/system/src/Tests/File/HtaccessUnitTest.php index 4fb7fed0c26388c94572611d57ea46ba7df28194..ae66ff3ac28f31b5531a896b1292c502d90a7a61 100644 --- a/core/modules/system/src/Tests/File/HtaccessUnitTest.php +++ b/core/modules/system/src/Tests/File/HtaccessUnitTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\File; use Drupal\Component\Utility\String; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests .htaccess file saving. * * @group File */ -class HtaccessUnitTest extends DrupalUnitTestBase { +class HtaccessUnitTest extends KernelTestBase { /** * Tests file_save_htaccess(). diff --git a/core/modules/system/src/Tests/Form/FormCacheTest.php b/core/modules/system/src/Tests/Form/FormCacheTest.php index 2124404407f2ba62cb9f8004446e6fd83d2e679d..906a1292e7b3ba73d013935c17167497b5d4f692 100644 --- a/core/modules/system/src/Tests/Form/FormCacheTest.php +++ b/core/modules/system/src/Tests/Form/FormCacheTest.php @@ -9,7 +9,7 @@ use Drupal\Core\Form\FormState; use Drupal\Core\Session\UserSession; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests \Drupal::formBuilder()->setCache() and @@ -17,7 +17,7 @@ * * @group Form */ -class FormCacheTest extends DrupalUnitTestBase { +class FormCacheTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Form/TriggeringElementProgrammedUnitTest.php b/core/modules/system/src/Tests/Form/TriggeringElementProgrammedUnitTest.php index 65a1ae03772fa762755cb5fb163d822eabfb1e9e..27327a49ef7b77964925f06e01a418c6bf0aa0cf 100644 --- a/core/modules/system/src/Tests/Form/TriggeringElementProgrammedUnitTest.php +++ b/core/modules/system/src/Tests/Form/TriggeringElementProgrammedUnitTest.php @@ -11,14 +11,14 @@ use Drupal\Core\Form\FormInterface; use Drupal\Core\Form\FormState; use Drupal\Core\Form\FormStateInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests detection of triggering_element for programmed form submissions. * * @group Form */ -class TriggeringElementProgrammedUnitTest extends DrupalUnitTestBase implements FormInterface { +class TriggeringElementProgrammedUnitTest extends KernelTestBase implements FormInterface { public static $modules = array('system'); diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationVersionUnitTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationVersionUnitTest.php index c458716ff1372cd79e706c3fb97b70044cda5dfd..dd4948fa35e3547442a24ccabb5005a83de96800 100644 --- a/core/modules/system/src/Tests/Installer/InstallerTranslationVersionUnitTest.php +++ b/core/modules/system/src/Tests/Installer/InstallerTranslationVersionUnitTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Installer; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the translation version fallback used during site installation to @@ -15,7 +15,7 @@ * * @group Installer */ -class InstallerTranslationVersionUnitTest extends DrupalUnitTestBase { +class InstallerTranslationVersionUnitTest extends KernelTestBase { protected function setUp() { parent::setUp(); diff --git a/core/modules/system/src/Tests/Lock/LockUnitTest.php b/core/modules/system/src/Tests/Lock/LockUnitTest.php index 8144be88cd2d45c5617a6093b253babcf58f185c..ec249c5a01e007b13eadf8d1dd03e31eecc0bb35 100644 --- a/core/modules/system/src/Tests/Lock/LockUnitTest.php +++ b/core/modules/system/src/Tests/Lock/LockUnitTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\Lock; use Drupal\Core\Lock\DatabaseLockBackend; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the Database lock backend. * * @group Lock */ -class LockUnitTest extends DrupalUnitTestBase { +class LockUnitTest extends KernelTestBase { /** * Database lock backend to test. diff --git a/core/modules/system/src/Tests/Path/PathUnitTestBase.php b/core/modules/system/src/Tests/Path/PathUnitTestBase.php index 3d25b1b20f7bcdad2a253f074de4f04a8b0d84a0..e9a19f7ac346f81d05854f6ae444eaa8453bb451 100644 --- a/core/modules/system/src/Tests/Path/PathUnitTestBase.php +++ b/core/modules/system/src/Tests/Path/PathUnitTestBase.php @@ -7,13 +7,13 @@ namespace Drupal\system\Tests\Path; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Database\Database; /** * Base class for Path/URL alias integration tests. */ -abstract class PathUnitTestBase extends DrupalUnitTestBase { +abstract class PathUnitTestBase extends KernelTestBase { /** * @var \Drupal\system\Tests\Path\UrlAliasFixtures diff --git a/core/modules/system/src/Tests/PhpStorage/PhpStorageFactoryTest.php b/core/modules/system/src/Tests/PhpStorage/PhpStorageFactoryTest.php index bad4c2f7e397d74569639e1dc135bf8d277f685e..248d203b910781af8284468d0a7e78a004d3d16d 100644 --- a/core/modules/system/src/Tests/PhpStorage/PhpStorageFactoryTest.php +++ b/core/modules/system/src/Tests/PhpStorage/PhpStorageFactoryTest.php @@ -11,7 +11,7 @@ use Drupal\Core\PhpStorage\PhpStorageFactory; use Drupal\Core\Site\Settings; use Drupal\Core\StreamWrapper\PublicStream; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\system\PhpStorage\MockPhpStorage; /** @@ -20,7 +20,7 @@ * @group PhpStorage * @see \Drupal\Core\PhpStorage\PhpStorageFactory */ -class PhpStorageFactoryTest extends DrupalUnitTestBase { +class PhpStorageFactoryTest extends KernelTestBase { /** * Tests the get() method with no settings. diff --git a/core/modules/system/src/Tests/Queue/QueueTest.php b/core/modules/system/src/Tests/Queue/QueueTest.php index 513297e87174675034fda7b4b479a727bf3258a5..18585c409a82411fa601955bc626e8ef4e536145 100644 --- a/core/modules/system/src/Tests/Queue/QueueTest.php +++ b/core/modules/system/src/Tests/Queue/QueueTest.php @@ -10,14 +10,14 @@ use Drupal\Core\Database\Database; use Drupal\Core\Queue\DatabaseQueue; use Drupal\Core\Queue\Memory; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Queues and dequeues a set of items to check the basic queue functionality. * * @group Queue */ -class QueueTest extends DrupalUnitTestBase { +class QueueTest extends KernelTestBase { /** * The modules to enable. diff --git a/core/modules/system/src/Tests/System/InfoAlterTest.php b/core/modules/system/src/Tests/System/InfoAlterTest.php index 2930f33b2f76d571ae24622fdbeaa67d90886aa3..02cdd1771e684d72fe80c5ceee2a08f1216aa6fa 100644 --- a/core/modules/system/src/Tests/System/InfoAlterTest.php +++ b/core/modules/system/src/Tests/System/InfoAlterTest.php @@ -7,14 +7,14 @@ namespace Drupal\system\Tests\System; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the effectiveness of hook_system_info_alter(). * * @group system */ -class InfoAlterTest extends DrupalUnitTestBase { +class InfoAlterTest extends KernelTestBase { public static $modules = array('system'); diff --git a/core/modules/system/src/Tests/Theme/TableTest.php b/core/modules/system/src/Tests/Theme/TableTest.php index 5e83c9109bffcf612d2c152d7cf7f63d5ec92e7d..412cb8e2386bdae657455b3bb6bdee6a2816a208 100644 --- a/core/modules/system/src/Tests/Theme/TableTest.php +++ b/core/modules/system/src/Tests/Theme/TableTest.php @@ -7,14 +7,14 @@ namespace Drupal\system\Tests\Theme; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests built-in table theme functions. * * @group Theme */ -class TableTest extends DrupalUnitTestBase { +class TableTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Theme/ThemeSettingsTest.php b/core/modules/system/src/Tests/Theme/ThemeSettingsTest.php index 299a96badc51674f8513c7f8483466f83a36dbab..3ef48d088d0c612cb0afc467752630898624ce6f 100644 --- a/core/modules/system/src/Tests/Theme/ThemeSettingsTest.php +++ b/core/modules/system/src/Tests/Theme/ThemeSettingsTest.php @@ -9,14 +9,14 @@ use Drupal\Core\Config\InstallStorage; use Drupal\Core\Extension\ExtensionDiscovery; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests theme settings functionality. * * @group Theme */ -class ThemeSettingsTest extends DrupalUnitTestBase { +class ThemeSettingsTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/system/src/Tests/Transliteration/TransliterationTest.php b/core/modules/system/src/Tests/Transliteration/TransliterationTest.php index 5c9add11a0a22377308a0bee143e059bfd48e63d..60a0e5c2d3830f4898b3d55ffb67705a427b0552 100644 --- a/core/modules/system/src/Tests/Transliteration/TransliterationTest.php +++ b/core/modules/system/src/Tests/Transliteration/TransliterationTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\Transliteration; use Drupal\Core\Transliteration\PHPTransliteration; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests Transliteration component functionality. * * @group Transliteration */ -class TransliterationTest extends DrupalUnitTestBase { +class TransliterationTest extends KernelTestBase { /** * Modules to enable. * diff --git a/core/modules/system/src/Tests/TypedData/TypedDataDefinitionTest.php b/core/modules/system/src/Tests/TypedData/TypedDataDefinitionTest.php index 20ab2f290f0c4213dc3d191aa6d99c5bfc3ade30..4a2dabc0d7d0961d9faaee4ef29d1fe4b4a8dd3a 100644 --- a/core/modules/system/src/Tests/TypedData/TypedDataDefinitionTest.php +++ b/core/modules/system/src/Tests/TypedData/TypedDataDefinitionTest.php @@ -15,14 +15,14 @@ use Drupal\Core\TypedData\ListDataDefinition; use Drupal\Core\TypedData\ListDataDefinitionInterface; use Drupal\Core\TypedData\MapDataDefinition; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests deriving metadata of core data types. * * @group TypedData */ -class TypedDataDefinitionTest extends DrupalUnitTestBase { +class TypedDataDefinitionTest extends KernelTestBase { /** * The typed data manager to use. diff --git a/core/modules/system/src/Tests/TypedData/TypedDataTest.php b/core/modules/system/src/Tests/TypedData/TypedDataTest.php index a0f7bcfd99792c6654a13b5352c50c3094cefc6c..99032f4ee593a2b1a7ee5b48408e795ae991a7eb 100644 --- a/core/modules/system/src/Tests/TypedData/TypedDataTest.php +++ b/core/modules/system/src/Tests/TypedData/TypedDataTest.php @@ -12,7 +12,7 @@ use Drupal\Core\TypedData\ListDataDefinition; use Drupal\Core\TypedData\MapDataDefinition; use Drupal\Core\TypedData\TypedDataInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\Core\Datetime\DrupalDateTime; /** @@ -20,7 +20,7 @@ * * @group TypedData */ -class TypedDataTest extends DrupalUnitTestBase { +class TypedDataTest extends KernelTestBase { /** * The typed data manager to use. diff --git a/core/modules/system/src/Tests/Validation/AllowedValuesConstraintValidatorTest.php b/core/modules/system/src/Tests/Validation/AllowedValuesConstraintValidatorTest.php index e8daf600409e0f4961cd97b84da0e160c1962025..a5242c10640320b5934cccaf1f4ba956d0777a77 100644 --- a/core/modules/system/src/Tests/Validation/AllowedValuesConstraintValidatorTest.php +++ b/core/modules/system/src/Tests/Validation/AllowedValuesConstraintValidatorTest.php @@ -8,14 +8,14 @@ namespace Drupal\system\Tests\Validation; use Drupal\Core\TypedData\DataDefinition; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests AllowedValues validation constraint with both valid and invalid values. * * @group Validation */ -class AllowedValuesConstraintValidatorTest extends DrupalUnitTestBase { +class AllowedValuesConstraintValidatorTest extends KernelTestBase { /** * The typed data manager to use. diff --git a/core/modules/system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php b/core/modules/system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php index 993c19ca821cfdac4caea66806ba2fa63a4ac7de..e27d97ac80c6e94db98590e91a1e54087ba44764 100644 --- a/core/modules/system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php +++ b/core/modules/system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php @@ -9,7 +9,7 @@ use Drupal\Core\TypedData\DataDefinition; use Drupal\Core\TypedData\MapDataDefinition; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests ComplexData validation constraint with both valid and invalid values @@ -17,7 +17,7 @@ * * @group Validation */ -class ComplexDataConstraintValidatorTest extends DrupalUnitTestBase { +class ComplexDataConstraintValidatorTest extends KernelTestBase { /** * The typed data manager to use. diff --git a/core/modules/text/src/Tests/TextSummaryTest.php b/core/modules/text/src/Tests/TextSummaryTest.php index 27c660f8277e48792a68a4fe836df72d16599047..69361149d3c48260ffbf73afc76dd5b19ce11a7e 100644 --- a/core/modules/text/src/Tests/TextSummaryTest.php +++ b/core/modules/text/src/Tests/TextSummaryTest.php @@ -7,14 +7,14 @@ namespace Drupal\text\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests text_summary() with different strings and lengths. * * @group text */ -class TextSummaryTest extends DrupalUnitTestBase { +class TextSummaryTest extends KernelTestBase { public static $modules = array('system', 'user', 'filter', 'text'); diff --git a/core/modules/tour/src/Tests/TourPluginTest.php b/core/modules/tour/src/Tests/TourPluginTest.php index 9e0775b4a0bc404d668ccf547681d5864f86270b..8248a9d28caff851f10b24cd672da48615398155 100644 --- a/core/modules/tour/src/Tests/TourPluginTest.php +++ b/core/modules/tour/src/Tests/TourPluginTest.php @@ -7,14 +7,14 @@ namespace Drupal\tour\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests the functionality of tour plugins. * * @group tour */ -class TourPluginTest extends DrupalUnitTestBase { +class TourPluginTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/user/src/Tests/UserAccountFormFieldsTest.php b/core/modules/user/src/Tests/UserAccountFormFieldsTest.php index 747de4bb3a9f11d0740afb221d5f4ae8af01b84d..384fee3f5abd5854651f48a784acfdcb2ff64277 100644 --- a/core/modules/user/src/Tests/UserAccountFormFieldsTest.php +++ b/core/modules/user/src/Tests/UserAccountFormFieldsTest.php @@ -8,7 +8,7 @@ namespace Drupal\user\Tests; use Drupal\Core\Form\FormState; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Verifies that the field order in user account forms is compatible with @@ -16,7 +16,7 @@ * * @group user */ -class UserAccountFormFieldsTest extends DrupalUnitTestBase { +class UserAccountFormFieldsTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/user/src/Tests/UserEntityTest.php b/core/modules/user/src/Tests/UserEntityTest.php index f09d39e314597f3f1d53ca098558821adb4b8c72..b4bd6d2c782d9f2bbec7126964f9abff6ff01831 100644 --- a/core/modules/user/src/Tests/UserEntityTest.php +++ b/core/modules/user/src/Tests/UserEntityTest.php @@ -8,7 +8,7 @@ namespace Drupal\user\Tests; use Drupal\Core\Language\LanguageInterface; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\user\Entity\User; /** @@ -17,7 +17,7 @@ * @group user * @see \Drupal\user\Entity\User */ -class UserEntityTest extends DrupalUnitTestBase { +class UserEntityTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/user/src/Tests/UserInstallTest.php b/core/modules/user/src/Tests/UserInstallTest.php index 661c605f7e99e3a87e34f2eb2d6fdff7036fb69c..89c06803d41e01c9601a61b6c29a551bc953b987 100644 --- a/core/modules/user/src/Tests/UserInstallTest.php +++ b/core/modules/user/src/Tests/UserInstallTest.php @@ -7,14 +7,14 @@ namespace Drupal\user\Tests; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; /** * Tests user_install(). * * @group user */ -class UserInstallTest extends DrupalUnitTestBase { +class UserInstallTest extends KernelTestBase { /** * Modules to enable. diff --git a/core/modules/user/src/Tests/UserValidationTest.php b/core/modules/user/src/Tests/UserValidationTest.php index 661e94a80ea5d1a0d07b3583f38bbe16d64b9471..f5ae202780dc09fe20c3a818df179a96054f3feb 100644 --- a/core/modules/user/src/Tests/UserValidationTest.php +++ b/core/modules/user/src/Tests/UserValidationTest.php @@ -10,7 +10,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Field\Plugin\Field\FieldType\EmailItem; use Drupal\Core\Render\Element\Email; -use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\simpletest\KernelTestBase; use Drupal\user\Entity\Role; use Drupal\user\Entity\User; @@ -19,7 +19,7 @@ * * @group user */ -class UserValidationTest extends DrupalUnitTestBase { +class UserValidationTest extends KernelTestBase { /** * Modules to enable.