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