You are here

protected function HandlerAliasTest::viewsData in Views (for Drupal 7) 8.3

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

Overrides ViewTestBase::viewsData

File

lib/Drupal/views/Tests/Handler/HandlerAliasTest.php, line 37
Definition of Drupal\views\Tests\Handler\HandlerAliasTest.

Class

HandlerAliasTest
Tests abstract handlers of views.

Namespace

Drupal\views\Tests\Handler

Code

protected function viewsData() {
  $data = parent::viewsData();

  // User the existing test_filter plugin.
  $data['views_test_data_alias']['table']['real table'] = 'views_test_data';
  $data['views_test_data_alias']['name_alias']['filter']['id'] = 'test_filter';
  $data['views_test_data_alias']['name_alias']['filter']['real field'] = 'name';
  return $data;
}