Commit 2ae7accf authored by alexpott's avatar alexpott

Issue #2259275 by filijonka, sun, Xano: Rename "DrupalUnitTestBase" to KernelTestBase.

parent 3cc312e2
......@@ -57,7 +57,7 @@ abstract class NormalizerTestBase extends DrupalUnitTestBase {
protected $entityClass = 'Drupal\entity_test\Entity\EntityTest';
/**
* Overrides \Drupal\simpletest\DrupalUnitTestBase::setup().
* {@inheritdoc}
*/
function setUp() {
parent::setUp();
......
......@@ -970,7 +970,7 @@ private function changeDatabasePrefix() {
/**
* Act on global state information before the environment is altered for a test.
*
* Allows e.g. DrupalUnitTestBase to prime system/extension info from the
* Allows e.g. KernelTestBase to prime system/extension info from the
* parent site (and inject it into the test environment so as to improve
* performance).
*/
......@@ -1058,7 +1058,7 @@ private function prepareEnvironment() {
// Unregister all custom stream wrappers of the parent site.
// Availability of Drupal stream wrappers varies by test base class:
// - UnitTestBase operates in a completely empty environment.
// - DrupalUnitTestBase supports and maintains stream wrappers in a custom
// - KernelTestBase supports and maintains stream wrappers in a custom
// way.
// - WebTestBase re-initializes Drupal stream wrappers after installation.
// The original stream wrappers are restored after the test run.
......
......@@ -2,17 +2,17 @@
/**
* @file
* Contains \Drupal\simpletest\Tests\DrupalUnitTestBaseTest.
* Contains \Drupal\simpletest\Tests\KernelTestBaseTest.
*/
namespace Drupal\simpletest\Tests;
use Drupal\simpletest\DrupalUnitTestBase;
use Drupal\simpletest\KernelTestBase;
/**
* Tests DrupalUnitTestBase functionality.
* Tests KernelTestBase functionality.
*/
class DrupalUnitTestBaseTest extends DrupalUnitTestBase {
class KernelTestBaseTest extends KernelTestBase {
/**
* Modules to enable.
......@@ -23,8 +23,8 @@ class DrupalUnitTestBaseTest extends DrupalUnitTestBase {
public static function getInfo() {
return array(
'name' => 'DrupalUnitTestBase',
'description' => 'Tests DrupalUnitTestBase functionality.',
'name' => 'KernelTestBase',
'description' => 'Tests KernelTestBase functionality.',
'group' => 'SimpleTest',
);
}
......
......@@ -27,7 +27,7 @@ public static function getInfo() {
function setUp() {
// DrupalKernel relies on global $config_directories and requires those
// directories to exist. Therefore, create the directories, but do not
// invoke DrupalUnitTestBase::setUp(), since that would set up further
// invoke KernelTestBase::setUp(), since that would set up further
// environment aspects, which would distort this test, because it tests
// the DrupalKernel (re-)building itself.
$this->prepareConfigDirectories();
......
......@@ -15,7 +15,7 @@
/**
* Tests the text_plain field formatter.
*
* @todo Move assertion helper methods into DrupalUnitTestBase.
* @todo Move assertion helper methods into KernelTestBase.
* @todo Move field helper methods, $modules, and setUp() into a new
* FieldPluginUnitTestBase.
*/
......
......@@ -21,7 +21,6 @@
* ViewTestBase instead.
*
* @see \Drupal\views\Tests\ViewTestBase
* @see \Drupal\simpletest\DrupalUnitTestBase
*/
abstract class ViewUnitTestBase extends DrupalUnitTestBase {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment