You are here

protected function SqlQueryTest::viewsData in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php \Drupal\Tests\views\Kernel\Plugin\SqlQueryTest::viewsData()

Returns the views data definition.

Overrides ViewsKernelTestBase::viewsData

File

core/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php, line 26

Class

SqlQueryTest
Tests the sql query plugin.

Namespace

Drupal\Tests\views\Kernel\Plugin

Code

protected function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['table']['base']['access query tag'] = 'test_tag';
  $data['views_test_data']['table']['base']['query metadata'] = [
    'key1' => 'test_metadata',
    'key2' => 'test_metadata2',
  ];
  return $data;
}