Problem/Motivation

In core\modules\simpletest\src\DrupalUnitTestBase.php:

<?php
/**
 * Base class for integration tests.
 *
 * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
 *   Use \Drupal\simpletest\KernelTestBase.
 */
?>

Proposed resolution

Replace extend of deprecated DrupalUnitTestBase with KernelTestBase

Remaining tasks

Impacted core modules/test cases:

Block:
block/src/Tests/BlockInterfaceTest.php
block/src/Tests/BlockStorageUnitTest.php
block/src/Tests/BlockViewBuilderTest.php

CKEditor:
ckeditor/src/Tests/CKEditorPluginManagerTest.php:use Drupal\simpletest\DrupalUnitTestBase;
ckeditor/src/Tests/CKEditorTest.php:use Drupal\simpletest\DrupalUnitTestBase;

Config:
config/src/Tests/ConfigCRUDTest.php
config/src/Tests/ConfigDependencyTest.php
config/src/Tests/ConfigDiffTest.php
config/src/Tests/ConfigEntityStatusTest.php
config/src/Tests/ConfigEntityStorageTest.php
config/src/Tests/ConfigEntityUnitTest.php:
config/src/Tests/ConfigEventsTest.php
config/src/Tests/ConfigFileContentTest.php
config/src/Tests/ConfigImporterTest.php:
config/src/Tests/ConfigImportRecreateTest.php
config/src/Tests/ConfigImportRenameValidationTest.php
config/src/Tests/ConfigInstallTest.php
config/src/Tests/ConfigLanguageOverrideTest.php
config/src/Tests/ConfigModuleOverridesTest.php
config/src/Tests/ConfigOverridesPriorityTest.php
config/src/Tests/ConfigOverrideTest.php
config/src/Tests/ConfigSchemaTest.php
config/src/Tests/ConfigSnapshotTest.php:
config/src/Tests/Storage/ConfigStorageTestBase.php

Contact:
contact/src/Tests/MessageEntityTest.php

Content:
content_translation/src/Tests/ContentTranslationSyncUnitTest.php

Contextual:
contextual/src/Tests/ContextualUnitTest.php:use Drupal\simpletest\DrupalUnitTestBase;

Editor:
editor/src/Tests/EditorManagerTest.php

Field:
field/src/Tests/FieldUnitTestBase.php

File:
file/src/Tests/FileManagedUnitTestBase.php:use Drupal\simpletest\DrupalUnitTestBase;

Filter:
filter/src/Tests/FilterCrudTest.php
filter/src/Tests/FilterDefaultConfigTest.php
filter/src/Tests/FilterSettingsTest.php
filter/src/Tests/FilterUnitTest.php

Hal:
hal/src/Tests/NormalizerTestBase.php:
hal/src/Tests/NormalizerTestBase.php

Language:
language/src/Tests/Condition/LanguageConditionTest.php
language/src/Tests/LanguageTestBase.php

Locale:
locale/src/Tests/LocaleConfigManagerTest.php

Node:
node/src/Tests/Config/NodeImportChangeTest.php
node/src/Tests/Config/NodeImportCreateTest.php
node/src/Tests/NodeLastChangedTest.php

Quickedit:
quickedit/src/Tests/QuickEditTestBase.php

RDF:
rdf/src/Tests/CrudTest.php:
rdf/src/Tests/RdfaAttributesTest.php

Serialization:
serialization/src/Tests/NormalizerTestBase.php
serialization/src/Tests/SerializationTest.php

System:
system/src/Tests/Action/ActionUnitTest.php
system/src/Tests/Cache/DatabaseBackendTagTest.php
system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php:
system/src/Tests/Common/CascadingStylesheetsTest.php
system/src/Tests/Common/JavaScriptTest.php
system/src/Tests/Common/MergeAttachmentsTest.php
system/src/Tests/Common/RenderElementTypesTest.php
system/src/Tests/Common/RenderTest.php
system/src/Tests/Common/SystemListingTest.php:
system/src/Tests/Common/XssUnitTest.php:
system/src/Tests/Database/DatabaseTestBase.php
system/src/Tests/Database/NextIdTest.php
system/src/Tests/DrupalKernel/DrupalKernelSiteTest.php
system/src/Tests/DrupalKernel/ServiceDestructionTest.php
system/src/Tests/Entity/BundleConstraintValidatorTest.php
system/src/Tests/Entity/ConfigEntityQueryTest.php
system/src/Tests/Entity/EntityTypedDataDefinitionTest.php
system/src/Tests/Entity/EntityUnitTestBase.php
system/src/Tests/Entity/FieldAccessTest.php
system/src/Tests/Extension/InfoParserUnitTest.php:
system/src/Tests/Extension/ThemeHandlerTest.php
system/src/Tests/File/FileTestBase.php
system/src/Tests/File/HtaccessUnitTest.php
system/src/Tests/Form/FormCacheTest.php
system/src/Tests/Form/TriggeringElementProgrammedUnitTest.php
system/src/Tests/Image/ToolkitGdTest.php
system/src/Tests/Installer/InstallerTranslationVersionUnitTest.php
system/src/Tests/Lock/LockUnitTest.php
system/src/Tests/Path/PathUnitTestBase.php
system/src/Tests/PhpStorage/PhpStorageFactoryTest.php
system/src/Tests/Queue/QueueTest.php
system/src/Tests/System/InfoAlterTest.php
system/src/Tests/Theme/TableTest.php
system/src/Tests/Theme/ThemeSettingsTest.php
system/src/Tests/Transliteration/TransliterationTest.php
system/src/Tests/TypedData/TypedDataDefinitionTest.php
system/src/Tests/TypedData/TypedDataTest.php
system/src/Tests/Validation/AllowedValuesConstraintValidatorTest.php
system/src/Tests/Validation/ComplexDataConstraintValidatorTest.php

Text:
text/src/Tests/TextSummaryTest.php

Tour:
tour/src/Tests/TourPluginTest.php

User:
user/src/Tests/UserAccountFormFieldsTest.php
user/src/Tests/UserEntityTest.php
user/src/Tests/UserInstallTest.php
user/src/Tests/UserValidationTest.php

Views:
core/modules/views/src/Tests/ViewUnitTestBase.php

Comments

cheops90’s picture

Assigned: Unassigned » cheops90
cheops90’s picture

cheops90’s picture

Assigned: cheops90 » Unassigned
Status: Active » Needs review
mitrpaka’s picture

mitrpaka’s picture

mitrpaka’s picture

Status: Needs review » Closed (fixed)