function DatabaseTestBase::setUp
Same name in this branch
- 8.9.x core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Database/DatabaseTestBase.php \Drupal\Tests\system\Functional\Database\DatabaseTestBase::setUp()
- 9 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
1 call to DatabaseTestBase::setUp()
- NextIdTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ NextIdTest.php
1 method overrides DatabaseTestBase::setUp()
- NextIdTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Database/ NextIdTest.php
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseTestBase.php, line 25
Class
- DatabaseTestBase
- Base class for databases database tests.
Namespace
Drupal\KernelTests\Core\DatabaseCode
protected function setUp() {
parent::setUp();
$this->connection = Database::getConnection();
$this->installSchema('database_test', [
'test',
'test_classtype',
'test_people',
'test_people_copy',
'test_one_blob',
'test_two_blobs',
'test_task',
'test_null',
'test_serialized',
'test_special_columns',
'TEST_UPPERCASE',
'virtual',
]);
self::addSampleData();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.