protected function HandlerTest::viewsData

Same name in this branch
  1. 8.x drupal/core/modules/views_ui/lib/Drupal/views_ui/Tests/HandlerTest.php \Drupal\views_ui\Tests\HandlerTest::viewsData()
  2. 8.x drupal/core/modules/views/lib/Drupal/views/Tests/Handler/HandlerTest.php \Drupal\views\Tests\Handler\HandlerTest::viewsData()

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

Adds a relationship for the uid column.

Overrides ViewTestBase::viewsData

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/Tests/HandlerTest.php, line 58
Contains \Drupal\views_ui\Tests\HandlerTest.

Class

HandlerTest
Tests some generic handler UI functionality.

Namespace

Drupal\views_ui\Tests

Code

protected function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['uid'] = array(
    'title' => t('UID'),
    'help' => t('The test data UID'),
    'relationship' => array(
      'id' => 'standard',
      'base' => 'users',
      'base field' => 'uid',
    ),
  );
  return $data;
}