diff --git a/core/modules/block/src/Tests/BlockInterfaceTest.php b/core/modules/block/src/Tests/BlockInterfaceTest.php index 3c7ecb0243b..769ed890525 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 @@ use Drupal\block\BlockInterface; * * @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 07b0c782306..b550bcc678d 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 @@ use Drupal\block\BlockInterface; * * @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 3760570f9a7..2ddbcab9b04 100644 --- a/core/modules/block/src/Tests/BlockViewBuilderTest.php +++ b/core/modules/block/src/Tests/BlockViewBuilderTest.php @@ -10,7 +10,7 @@ namespace Drupal\block\Tests; 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 @@ use Drupal\block\Entity\Block; * * @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 9ed6d942c52..57d556a7157 100644 --- a/core/modules/config/src/Tests/ConfigCRUDTest.php +++ b/core/modules/config/src/Tests/ConfigCRUDTest.php @@ -11,7 +11,7 @@ use Drupal\Component\Utility\String; 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 @@ use Drupal\Core\Config\UnsupportedDataTypeConfigException; * * @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 fa903b9fe14..88abef7dfa1 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 7fda7166771..10f6902549e 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 3ad7bfbc006..caad7676e02 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 0965fea1f7d..19bf95947cd 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 @@ use Drupal\Core\Config\ConfigDuplicateUUIDException; * * @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 b9daa6cd028..e543c417299 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 93ef6275f1d..b4f72794ad1 100644 --- a/core/modules/config/src/Tests/ConfigEventsTest.php +++ b/core/modules/config/src/Tests/ConfigEventsTest.php @@ -9,14 +9,14 @@ namespace Drupal\config\Tests; 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 0f5b8d05eab..35ca948a350 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 65fd79997d9..e1a607a0a7a 100644 --- a/core/modules/config/src/Tests/ConfigImportRecreateTest.php +++ b/core/modules/config/src/Tests/ConfigImportRecreateTest.php @@ -10,14 +10,14 @@ namespace Drupal\config\Tests; 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 6639d5b3777..ea2facebd3a 100644 --- a/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php +++ b/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php @@ -13,14 +13,14 @@ use Drupal\Component\Uuid\Php; 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 8907fc2a9fe..65efbf5cd62 100644 --- a/core/modules/config/src/Tests/ConfigImporterTest.php +++ b/core/modules/config/src/Tests/ConfigImporterTest.php @@ -11,14 +11,14 @@ use Drupal\Component\Utility\String; 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 e28463824c1..532d1949441 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * @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 1a95b3f34b6..2371a88a16a 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 a5a51019fa6..3a663d5c096 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 70bbee7d067..38ba0a1e581 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 3e6e288d68b..52e865d382e 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 7005002505c..202b5522583 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\FileStorage; 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 a7d6edad024..b3789d664f2 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 e3c4e76e1d5..7f07483d835 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * 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 b05b4466344..1a2793fb400 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 @@ use Drupal\content_translation\FieldTranslationSynchronizer; * * @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 051601aee5b..cd07552f04a 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 68651f5b821..5e721826c63 100644 --- a/core/modules/hal/src/Tests/NormalizerTestBase.php +++ b/core/modules/hal/src/Tests/NormalizerTestBase.php @@ -20,13 +20,13 @@ use Drupal\rest\LinkManager\TypeLinkManager; 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 882a1549923..9cd3cf9d4e9 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 @@ use Drupal\Core\Condition\ConditionManager; * * @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 7c7cb260ac3..b07c36f1bea 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 53d3d48ee8a..5df5486ecae 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 209c8afff87..99f4e56ff04 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 dd308c6efea..4444cc1111b 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 614c52f785e..e08ec2ee392 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 49c14b7802b..0779f75d993 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 3da1c657abf..fb167c3b7b6 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 5e1c372c968..3078f8492be 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 772999c7049..cc9589ad736 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 @@ use Symfony\Component\Serializer\Exception\UnexpectedValueException; * * @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 d442399bd83..28925bbfd69 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 @@ use Drupal\Core\Action\ActionInterface; * * @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 c832ded9a25..e2b9d374ecb 100644 --- a/core/modules/system/src/Tests/Cache/DatabaseBackendTagTest.php +++ b/core/modules/system/src/Tests/Cache/DatabaseBackendTagTest.php @@ -9,7 +9,7 @@ namespace Drupal\system\Tests\Cache; 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 @@ use Symfony\Component\DependencyInjection\Reference; * * @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 91b75ba5c47..97d7ccd6113 100644 --- a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php @@ -9,7 +9,7 @@ namespace Drupal\system\Tests\Cache; 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * @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 d319de3f4f4..658cc2981d5 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 a59d50effa6..9c924fdc368 100644 --- a/core/modules/system/src/Tests/Common/JavaScriptTest.php +++ b/core/modules/system/src/Tests/Common/JavaScriptTest.php @@ -9,7 +9,7 @@ namespace Drupal\system\Tests\Common; 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 @@ use Drupal\Component\Utility\Crypt; * * @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 51d7c6234b7..20a4401b09c 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 c9d609c77fc..4484ea54760 100644 --- a/core/modules/system/src/Tests/Common/RenderElementTypesTest.php +++ b/core/modules/system/src/Tests/Common/RenderElementTypesTest.php @@ -9,14 +9,14 @@ namespace Drupal\system\Tests\Common; 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 206f0a568a6..a1d7523bbc4 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\Serialization\Json; 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 6b2e1bb318f..861a1df52aa 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 6f22713008c..511dcc6852f 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 4a190f617f4..524e0e8aa8b 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * 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 584b7deeb03..d7456c7b2f3 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 1a719d2f45a..59ee3f34dc0 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 b97b1c92dbf..4fdc9b7b4d0 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 @@ use Symfony\Component\HttpKernel\Event\PostResponseEvent; * * @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 16e03a83e0c..be2dc48639c 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 @@ use Drupal\system\Tests\TypedData; * * @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 1bd8f201cc0..7641cf2f333 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * @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 23318a0d26b..d71ca150cad 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\ComplexDataDefinitionInterface; 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 235373ec00e..ff89b9192ec 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 61faabccdda..b44d84a97d4 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 17c441f82ac..b9252857ddf 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 @@ use Drupal\Core\Extension\InfoParserException; * * @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 1d382c77a1d..50d299c05dc 100644 --- a/core/modules/system/src/Tests/Extension/ThemeHandlerTest.php +++ b/core/modules/system/src/Tests/Extension/ThemeHandlerTest.php @@ -9,14 +9,14 @@ namespace Drupal\system\Tests\Extension; 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 2571a962afd..8e51ffffd10 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 4fb7fed0c26..ae66ff3ac28 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 2124404407f..906a1292e7b 100644 --- a/core/modules/system/src/Tests/Form/FormCacheTest.php +++ b/core/modules/system/src/Tests/Form/FormCacheTest.php @@ -9,7 +9,7 @@ namespace Drupal\system\Tests\Form; 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 65a1ae03772..27327a49ef7 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\Component\Utility\String; 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 c458716ff13..dd4948fa35e 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 8144be88cd2..ec249c5a01e 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 3d25b1b20f7..e9a19f7ac34 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 bad4c2f7e39..248d203b910 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\Component\PhpStorage\MTimeProtectedFileStorage; 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 @@ use Drupal\system\PhpStorage\MockPhpStorage; * @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 513297e8717..18585c409a8 100644 --- a/core/modules/system/src/Tests/Queue/QueueTest.php +++ b/core/modules/system/src/Tests/Queue/QueueTest.php @@ -10,14 +10,14 @@ namespace Drupal\system\Tests\Queue; 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 2930f33b2f7..02cdd1771e6 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 5e83c9109bf..412cb8e2386 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 299a96badc5..3ef48d088d0 100644 --- a/core/modules/system/src/Tests/Theme/ThemeSettingsTest.php +++ b/core/modules/system/src/Tests/Theme/ThemeSettingsTest.php @@ -9,14 +9,14 @@ namespace Drupal\system\Tests\Theme; 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 5c9add11a0a..60a0e5c2d38 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 20ab2f290f0..4a2dabc0d7d 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\DataReferenceDefinitionInterface; 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 a0f7bcfd997..99032f4ee59 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\DataDefinition; 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 @@ use Drupal\Core\Datetime\DrupalDateTime; * * @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 e8daf600409..a5242c10640 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 993c19ca821..e27d97ac80c 100644 --- a/core/modules/system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php +++ b/core/modules/system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php @@ -9,7 +9,7 @@ namespace Drupal\system\Tests\Validation; 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 27c660f8277..69361149d3c 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 9e0775b4a0b..8248a9d28ca 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 747de4bb3a9..384fee3f5ab 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 @@ use Drupal\simpletest\DrupalUnitTestBase; * * @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 f09d39e3145..b4bd6d2c782 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 @@ use Drupal\user\Entity\User; * @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 661c605f7e9..89c06803d41 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 661e94a80ea..f5ae202780d 100644 --- a/core/modules/user/src/Tests/UserValidationTest.php +++ b/core/modules/user/src/Tests/UserValidationTest.php @@ -10,7 +10,7 @@ namespace Drupal\user\Tests; 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 @@ use Drupal\user\Entity\User; * * @group user */ -class UserValidationTest extends DrupalUnitTestBase { +class UserValidationTest extends KernelTestBase { /** * Modules to enable.