function HandlerTest::schemaDefinition

Same name and namespace in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::schemaDefinition()
  2. 10 core/modules/views_ui/tests/src/Functional/HandlerTest.php \Drupal\Tests\views_ui\Functional\HandlerTest::schemaDefinition()
  3. 11.x 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 53

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.