protected function HandlerTest::schemaDefinition

Overrides \Drupal\views\Tests\ViewTestBase::schemaDefinition().

Adds a uid column to test the relationships.

Overrides ViewTestBase::schemaDefinition

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/Tests/HandlerTest.php, line 39
Contains \Drupal\views_ui\Tests\HandlerTest.

Class

HandlerTest
Tests some generic handler UI functionality.

Namespace

Drupal\views_ui\Tests

Code

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;
}