function HandlerTest::schemaDefinition
Same name in other branches
- 9 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::schemaDefinition()
- 10 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::schemaDefinition()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.