function DatabaseTestBase::setUp
Same name in this branch
- 9 core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
Same name in other branches
- 8.9.x core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
- 8.9.x core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php \Drupal\KernelTests\Core\Database\DatabaseTestBase::setUp()
- 10 core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
- 10 core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php \Drupal\KernelTests\Core\Database\DatabaseTestBase::setUp()
- 11.x core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
- 11.x core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php \Drupal\KernelTests\Core\Database\DatabaseTestBase::setUp()
Overrides KernelTestBase::setUp
2 calls to DatabaseTestBase::setUp()
- NextIdTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ NextIdTest.php - StatementWrapperLegacyTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ StatementWrapperLegacyTest.php
2 methods override DatabaseTestBase::setUp()
- NextIdTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ NextIdTest.php - StatementWrapperLegacyTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ StatementWrapperLegacyTest.php
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseTestBase.php, line 31
Class
- DatabaseTestBase
- Base class for databases database tests.
Namespace
Drupal\KernelTests\Core\DatabaseCode
protected function setUp() {
parent::setUp();
$this->connection = Database::getConnection();
$this->installSampleSchema();
$this->addSampleData();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.