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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.