You are here

protected function QueryTest::viewsData in Drupal 9

Same name in this branch
  1. 9 core/modules/views_ui/tests/src/Functional/QueryTest.php \Drupal\Tests\views_ui\Functional\QueryTest::viewsData()
  2. 9 core/modules/views/tests/src/Kernel/Plugin/QueryTest.php \Drupal\Tests\views\Kernel\Plugin\QueryTest::viewsData()
Same name and namespace in other branches
  1. 8 core/modules/views_ui/tests/src/Functional/QueryTest.php \Drupal\Tests\views_ui\Functional\QueryTest::viewsData()

Returns the views data definition.

Overrides ViewTestBase::viewsData

File

core/modules/views_ui/tests/src/Functional/QueryTest.php, line 30

Class

QueryTest
Tests query plugins.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['table']['base']['query_id'] = 'query_test';
  return $data;
}