You are here

protected function DatabaseTestBase::setUp in Drupal 10

Same name in this branch
  1. 10 core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php \Drupal\KernelTests\Core\Database\DatabaseTestBase::setUp()
  2. 10 core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
  2. 9 core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php, line 21

Class

DatabaseTestBase
Base class for databases database tests.

Namespace

Drupal\Tests\system\Functional\Database

Code

protected function setUp() : void {
  parent::setUp();
  DatabaseKernelTestBase::addSampleData();
}