Commit 0bb57ed2 authored by alexpott's avatar alexpott

Issue #2347999 by Mile23, daffie, cs_shadow, cosmicdreams: DrupalUnitTestBase...

Issue #2347999 by Mile23, daffie, cs_shadow, cosmicdreams: DrupalUnitTestBase is deprecated, replace with KernelTestBase
parent 3ec63481
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\block\Tests; namespace Drupal\block\Tests;
use Drupal\Core\Form\FormState; use Drupal\Core\Form\FormState;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Drupal\block\BlockInterface; use Drupal\block\BlockInterface;
/** /**
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
* @group block * @group block
*/ */
class BlockInterfaceTest extends DrupalUnitTestBase { class BlockInterfaceTest extends KernelTestBase {
public static $modules = array('system', 'block', 'block_test', 'user'); public static $modules = array('system', 'block', 'block_test', 'user');
/** /**
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\block\Tests; namespace Drupal\block\Tests;
use Drupal\Core\Config\Entity\ConfigEntityStorage; use Drupal\Core\Config\Entity\ConfigEntityStorage;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Drupal\block_test\Plugin\Block\TestHtmlBlock; use Drupal\block_test\Plugin\Block\TestHtmlBlock;
use Drupal\Component\Plugin\Exception\PluginException; use Drupal\Component\Plugin\Exception\PluginException;
use Drupal\block\Entity\Block; use Drupal\block\Entity\Block;
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
* *
* @group block * @group block
*/ */
class BlockStorageUnitTest extends DrupalUnitTestBase { class BlockStorageUnitTest extends KernelTestBase {
/** /**
* Modules to install. * Modules to install.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Html;
use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\UrlCacheContext; use Drupal\Core\Cache\UrlCacheContext;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\RequestStack;
use Drupal\block\Entity\Block; use Drupal\block\Entity\Block;
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @group block * @group block
*/ */
class BlockViewBuilderTest extends DrupalUnitTestBase { class BlockViewBuilderTest extends KernelTestBase {
/** /**
* Modules to install. * Modules to install.
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
use Drupal\Core\Config\ConfigNameException; use Drupal\Core\Config\ConfigNameException;
use Drupal\Core\Config\ConfigValueException; use Drupal\Core\Config\ConfigValueException;
use Drupal\Core\Config\InstallStorage; use Drupal\Core\Config\InstallStorage;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Drupal\Core\Config\FileStorage; use Drupal\Core\Config\FileStorage;
use Drupal\Core\Config\DatabaseStorage; use Drupal\Core\Config\DatabaseStorage;
use Drupal\Core\Config\UnsupportedDataTypeConfigException; use Drupal\Core\Config\UnsupportedDataTypeConfigException;
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
* @group config * @group config
*/ */
class ConfigCRUDTest extends DrupalUnitTestBase { class ConfigCRUDTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests for configuration dependencies. * Tests for configuration dependencies.
* *
* @group config * @group config
*/ */
class ConfigDependencyTest extends DrupalUnitTestBase { class ConfigDependencyTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Calculating the difference between two sets of configuration. * Calculating the difference between two sets of configuration.
* *
* @group config * @group config
*/ */
class ConfigDiffTest extends DrupalUnitTestBase { class ConfigDiffTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests configuration entity status functionality. * Tests configuration entity status functionality.
* *
* @group config * @group config
*/ */
class ConfigEntityStatusTest extends DrupalUnitTestBase { class ConfigEntityStatusTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Drupal\Core\Config\ConfigDuplicateUUIDException; use Drupal\Core\Config\ConfigDuplicateUUIDException;
/** /**
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
* @group config * @group config
*/ */
class ConfigEntityStorageTest extends DrupalUnitTestBase { class ConfigEntityStorageTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Unit tests for configuration entity base methods. * Unit tests for configuration entity base methods.
* *
* @group config * @group config
*/ */
class ConfigEntityUnitTest extends DrupalUnitTestBase { class ConfigEntityUnitTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
use Drupal\Core\Config\Config; use Drupal\Core\Config\Config;
use Drupal\Core\Config\ConfigEvents; use Drupal\Core\Config\ConfigEvents;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests events fired on configuration objects. * Tests events fired on configuration objects.
* *
* @group config * @group config
*/ */
class ConfigEventsTest extends DrupalUnitTestBase { class ConfigEventsTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\Core\Config\FileStorage; use Drupal\Core\Config\FileStorage;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests reading and writing of configuration files. * Tests reading and writing of configuration files.
* *
* @group config * @group config
*/ */
class ConfigFileContentTest extends DrupalUnitTestBase { class ConfigFileContentTest extends KernelTestBase {
/** /**
* Tests setting, writing, and reading of a configuration setting. * Tests setting, writing, and reading of a configuration setting.
*/ */
......
...@@ -10,14 +10,14 @@ ...@@ -10,14 +10,14 @@
use Drupal\Component\Utility\Unicode; use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporter;
use Drupal\Core\Config\StorageComparer; use Drupal\Core\Config\StorageComparer;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests importing recreated configuration entities. * Tests importing recreated configuration entities.
* *
* @group config * @group config
*/ */
class ConfigImportRecreateTest extends DrupalUnitTestBase { class ConfigImportRecreateTest extends KernelTestBase {
/** /**
* Config Importer object used for testing. * Config Importer object used for testing.
......
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporter;
use Drupal\Core\Config\ConfigImporterException; use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\StorageComparer; use Drupal\Core\Config\StorageComparer;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests validating renamed configuration in a configuration import. * Tests validating renamed configuration in a configuration import.
* *
* @group config * @group config
*/ */
class ConfigImportRenameValidationTest extends DrupalUnitTestBase { class ConfigImportRenameValidationTest extends KernelTestBase {
/** /**
* Config Importer object used for testing. * Config Importer object used for testing.
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\ConfigImporter;
use Drupal\Core\Config\ConfigImporterException; use Drupal\Core\Config\ConfigImporterException;
use Drupal\Core\Config\StorageComparer; use Drupal\Core\Config\StorageComparer;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests importing configuration from files into active configuration. * Tests importing configuration from files into active configuration.
* *
* @group config * @group config
*/ */
class ConfigImporterTest extends DrupalUnitTestBase { class ConfigImporterTest extends KernelTestBase {
/** /**
* Config Importer object used for testing. * Config Importer object used for testing.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests installation of configuration objects in installation functionality. * Tests installation of configuration objects in installation functionality.
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* @group config * @group config
* @see \Drupal\Core\Config\ConfigInstaller * @see \Drupal\Core\Config\ConfigInstaller
*/ */
class ConfigInstallTest extends DrupalUnitTestBase { class ConfigInstallTest extends KernelTestBase {
protected function setUp() { protected function setUp() {
parent::setUp(); parent::setUp();
......
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\language\Entity\ConfigurableLanguage; use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Confirm that language overrides work. * Confirm that language overrides work.
* *
* @group config * @group config
*/ */
class ConfigLanguageOverrideTest extends DrupalUnitTestBase { class ConfigLanguageOverrideTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests module overrides of configuration using event subscribers. * Tests module overrides of configuration using event subscribers.
* *
* @group config * @group config
*/ */
class ConfigModuleOverridesTest extends DrupalUnitTestBase { class ConfigModuleOverridesTest extends KernelTestBase {
public static $modules = array('system', 'config', 'config_override_test'); public static $modules = array('system', 'config', 'config_override_test');
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests configuration overrides via $config in settings.php. * Tests configuration overrides via $config in settings.php.
* *
* @group config * @group config
*/ */
class ConfigOverrideTest extends DrupalUnitTestBase { class ConfigOverrideTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\Core\Language\Language; 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 * Tests that language, module and settings.php are applied in the correct
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
* @group config * @group config
*/ */
class ConfigOverridesPriorityTest extends DrupalUnitTestBase { class ConfigOverridesPriorityTest extends KernelTestBase {
public static $modules = array('system', 'config', 'config_override_test', 'language'); public static $modules = array('system', 'config', 'config_override_test', 'language');
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
use Drupal\Core\Config\InstallStorage; use Drupal\Core\Config\InstallStorage;
use Drupal\Core\TypedData\Type\IntegerInterface; use Drupal\Core\TypedData\Type\IntegerInterface;
use Drupal\Core\TypedData\Type\StringInterface; use Drupal\Core\TypedData\Type\StringInterface;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests schema for configuration objects. * Tests schema for configuration objects.
* *
* @group config * @group config
*/ */
class ConfigSchemaTest extends DrupalUnitTestBase { class ConfigSchemaTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
namespace Drupal\config\Tests; namespace Drupal\config\Tests;
use Drupal\Core\Config\StorageComparer; use Drupal\Core\Config\StorageComparer;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Tests config snapshot creation and updating. * Tests config snapshot creation and updating.
* *
* @group config * @group config
*/ */
class ConfigSnapshotTest extends DrupalUnitTestBase { class ConfigSnapshotTest extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\config\Tests\Storage; namespace Drupal\config\Tests\Storage;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
/** /**
* Base class for testing storage operations. * Base class for testing storage operations.
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* supply the necessary helper methods to interact with the raw/native storage * supply the necessary helper methods to interact with the raw/native storage
* directly. * directly.
*/ */
abstract class ConfigStorageTestBase extends DrupalUnitTestBase { abstract class ConfigStorageTestBase extends KernelTestBase {
/** /**
* @var \Drupal\Core\Config\StorageInterface; * @var \Drupal\Core\Config\StorageInterface;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\content_translation\Tests; namespace Drupal\content_translation\Tests;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Drupal\content_translation\FieldTranslationSynchronizer; use Drupal\content_translation\FieldTranslationSynchronizer;
/** /**
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* @group content_translation * @group content_translation
*/ */
class ContentTranslationSyncUnitTest extends DrupalUnitTestBase { class ContentTranslationSyncUnitTest extends KernelTestBase {
/** /**
* The synchronizer class to be tested. * The synchronizer class to be tested.
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
namespace Drupal\file\Tests; namespace Drupal\file\Tests;
use Drupal\file\FileInterface; 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 * Base class for file unit tests that use the file_test module to test uploads and
* hooks. * hooks.
*/ */
abstract class FileManagedUnitTestBase extends DrupalUnitTestBase { abstract class FileManagedUnitTestBase extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
use Drupal\serialization\EntityResolver\ChainEntityResolver; use Drupal\serialization\EntityResolver\ChainEntityResolver;
use Drupal\serialization\EntityResolver\TargetIdResolver; use Drupal\serialization\EntityResolver\TargetIdResolver;
use Drupal\serialization\EntityResolver\UuidResolver; use Drupal\serialization\EntityResolver\UuidResolver;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\Serializer;
/** /**
* Test the HAL normalizer. * Test the HAL normalizer.
*/ */
abstract class NormalizerTestBase extends DrupalUnitTestBase { abstract class NormalizerTestBase extends KernelTestBase {
/** /**
* Modules to enable. * Modules to enable.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\language\Tests\Condition; namespace Drupal\language\Tests\Condition;
use Drupal\language\Entity\ConfigurableLanguage; use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\simpletest\DrupalUnitTestBase; use Drupal\simpletest\KernelTestBase;
use Drupal\Core\Condition\ConditionManager; use Drupal\Core\Condition\ConditionManager;
/** /**
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* *
* @group language * @group language
*/ */
class LanguageConditionTest extends DrupalUnitTestBase { class LanguageConditionTest extends KernelTestBase {
/** /**
* The condition plugin manager. * The condition plugin manager.
......