protected function SqlQueryTest::viewsData in Drupal 9
Same name and namespace in other branches
- 8 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 27
Class
- SqlQueryTest
- Tests the sql query plugin.
Namespace
Drupal\Tests\views\Kernel\PluginCode
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;
}