You are here

protected function SchemaTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php \Drupal\KernelTests\Core\Database\SchemaTest::setUp()
  2. 9 core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php \Drupal\KernelTests\Core\Database\SchemaTest::setUp()

File

core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php, line 50

Class

SchemaTest
Tests table creation and modification via the schema API.

Namespace

Drupal\KernelTests\Core\Database

Code

protected function setUp() : void {
  parent::setUp();
  $this->connection = Database::getConnection();
  $this->schema = $this->connection
    ->schema();
}