protected function ViewsDataTest::viewsData in Views (for Drupal 7) 8.3
Overrides Drupal\views\Tests\ViewTestBase::viewsData().
Overrides ViewTestBase::viewsData
1 call to ViewsDataTest::viewsData()
- ViewsDataTest::testViewsFetchData in lib/
Drupal/ views/ Tests/ ViewsDataTest.php - Tests the views_fetch_data function.
File
- lib/
Drupal/ views/ Tests/ ViewsDataTest.php, line 55 - Definition of Drupal\views\Tests\ViewsDataTest.
Class
- ViewsDataTest
- Tests the fetching of views data.
Namespace
Drupal\views\TestsCode
protected function viewsData() {
$data = parent::viewsData();
// Tweak the views data to have a base for testing views_fetch_fields().
unset($data['views_test_data']['id']['field']);
unset($data['views_test_data']['name']['argument']);
unset($data['views_test_data']['age']['filter']);
unset($data['views_test_data']['job']['sort']);
$data['views_test_data']['created']['area']['id'] = 'text';
$data['views_test_data']['age']['area']['id'] = 'text';
$data['views_test_data']['age']['area']['sub_type'] = 'header';
$data['views_test_data']['job']['area']['id'] = 'text';
$data['views_test_data']['job']['area']['sub_type'] = array(
'header',
'footer',
);
return $data;
}