You are here

protected function DatabaseTestBase::setUp in Drupal 8

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

Code

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();
}