You are here

protected function HandlerTest::schemaDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::schemaDefinition()

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

Adds a uid column to test the relationships.

@internal

Overrides ViewTestBase::schemaDefinition

File

core/modules/views_ui/tests/src/Functional/HandlerTest.php, line 52

Class

HandlerTest
Tests handler UI for views.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function schemaDefinition() {
  $schema = parent::schemaDefinition();
  $schema['views_test_data']['fields']['uid'] = [
    'description' => "The {users}.uid of the author of the beatle entry.",
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ];
  return $schema;
}