You are here

protected function RelationshipJoinTestBase::schemaDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Plugin/RelationshipJoinTestBase.php \Drupal\views\Tests\Plugin\RelationshipJoinTestBase::schemaDefinition()

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

Adds a uid column to test the relationships.

Overrides ViewKernelTestBase::schemaDefinition

File

core/modules/views/src/Tests/Plugin/RelationshipJoinTestBase.php, line 52
Contains \Drupal\views\Tests\Plugin\RelationshipJoinTestBase.

Class

RelationshipJoinTestBase
Provides 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_field_data}.uid of the author of the beatle entry.",
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  return $schema;
}