You are here

protected function RelationshipTest::schemaDefinition in Views (for Drupal 7) 8.3

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

Adds a uid column to test the relationships.

Return value

array

Overrides ViewTestBase::schemaDefinition

File

lib/Drupal/views/Tests/Handler/RelationshipTest.php, line 49
Definition of Drupal\views\Tests\Handler\RelationshipTest.

Class

RelationshipTest
Tests the base relationship handler.

Namespace

Drupal\views\Tests\Handler

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