DatabaseTestSchemaInstallTrait.php
Same filename in other branches
Namespace
Drupal\KernelTests\Core\DatabaseFile
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseTestSchemaInstallTrait.php
View source
<?php
declare (strict_types=1);
namespace Drupal\KernelTests\Core\Database;
/**
* Trait to manage installation for test tables.
*/
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',
]);
}
}
Traits
Title | Deprecated | Summary |
---|---|---|
DatabaseTestSchemaInstallTrait | Trait to manage installation for test tables. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.