protected function EFQViewsTestBase::view in EntityFieldQuery Views Backend 7
3 calls to EFQViewsTestBase::view()
2 methods override EFQViewsTestBase::view()
File
- tests/
efq_views.test, line 58 - Tests for EFQ Views query features.
Class
- EFQViewsTestBase
- Abstract class for EFQ views testing.
Code
protected function view() {
$view = new view();
$view->base_table = 'efq_efq_views_test';
/* Display: Master */
$handler = $view
->new_display('default');
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$fields = array(
'entity_id',
'eid',
'language',
'test_boolean',
'test_date',
'test_decimal',
'test_duration',
'test_integer',
'test_text',
'uid',
'url',
'field_boolean',
'bundle',
'bundle_label',
'label',
);
foreach ($fields as $field) {
$handler->display->display_options['fields'][$field] = array(
'id' => $field,
'field' => $field,
'table' => 'efq_efq_views_test',
);
}
return $view;
}