protected function RelationshipJoinTestBase::schemaDefinition

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

Adds a uid column to test the relationships.

Overrides ViewUnitTestBase::schemaDefinition

File

drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/RelationshipJoinTestBase.php, line 44
Contains \Drupal\views\Tests\Plugin\RelationshipJoinTestBase.

Class

RelationshipJoinTestBase
Provies a base class for a testing a relationship.

Namespace

Drupal\views\Tests\Plugin

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