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 @@
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');
/**
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
*/
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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();
......
......@@ -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.
......
......@@ -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');
......
......@@ -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.
......
......@@ -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');
......
......@@ -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.
......
......@@ -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.
......
......@@ -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;
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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');
/**
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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}
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......