function DatabaseTestSchemaInstallTrait::installSampleSchema

Same name in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Database/DatabaseTestSchemaInstallTrait.php \Drupal\KernelTests\Core\Database\DatabaseTestSchemaInstallTrait::installSampleSchema()
  2. 11.x core/tests/Drupal/KernelTests/Core/Database/DatabaseTestSchemaInstallTrait.php \Drupal\KernelTests\Core\Database\DatabaseTestSchemaInstallTrait::installSampleSchema()

Sets up our sample table schema.

2 calls to DatabaseTestSchemaInstallTrait::installSampleSchema()
DatabaseTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php
DriverSpecificDatabaseTestBase::setUp in core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php

File

core/tests/Drupal/KernelTests/Core/Database/DatabaseTestSchemaInstallTrait.php, line 13

Class

DatabaseTestSchemaInstallTrait
Trait to manage installation for test tables.

Namespace

Drupal\KernelTests\Core\Database

Code

protected function installSampleSchema() : void {
    $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',
    ]);
}

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