trait DatabaseTestSchemaInstallTrait

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Database/DatabaseTestSchemaInstallTrait.php \Drupal\KernelTests\Core\Database\DatabaseTestSchemaInstallTrait
  2. 11.x core/tests/Drupal/KernelTests/Core/Database/DatabaseTestSchemaInstallTrait.php \Drupal\KernelTests\Core\Database\DatabaseTestSchemaInstallTrait

Trait to manage installation for test tables.

Hierarchy

1 file declares its use of DatabaseTestSchemaInstallTrait
NonPublicSchemaTest.php in core/modules/pgsql/tests/src/Kernel/pgsql/NonPublicSchemaTest.php

File

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

Namespace

Drupal\KernelTests\Core\Database
View source
trait DatabaseTestSchemaInstallTrait {
    
    /**
     * Sets up our sample table schema.
     */
    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',
        ]);
    }

}

Members

Title Sort descending Modifiers Object type Summary
DatabaseTestSchemaInstallTrait::installSampleSchema protected function Sets up our sample table schema.

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