protected function DatabaseTestBase::setUp in Drupal 10
Same name in this branch
- 10 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()
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php \Drupal\KernelTests\Core\Database\DatabaseTestBase::setUp()
- 9 core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php \Drupal\KernelTests\Core\Database\DatabaseTestBase::setUp()
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() : void {
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_UPPERCASE',
'select',
'virtual',
]);
self::addSampleData();
}