protected function HandlerTest::schemaDefinition in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::schemaDefinition()
Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().
Adds a uid column to test the relationships.
@internal
Overrides ViewTestBase::schemaDefinition
File
- core/
modules/ views_ui/ tests/ src/ Functional/ HandlerTest.php, line 53
Class
- HandlerTest
- Tests handler UI for views.
Namespace
Drupal\Tests\views_ui\FunctionalCode
protected function schemaDefinition() {
$schema = parent::schemaDefinition();
$schema['views_test_data']['fields']['uid'] = [
'description' => "The {users}.uid of the author of the beatle entry.",
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
];
return $schema;
}