protected function viewsFieldViewTestCase::view_child_field_api in Views Field View 7
Contains a view used by the fieldapi fields testcase.
See also
\viewsFieldViewTestCase::testChildViewWithFieldapiField
1 call to viewsFieldViewTestCase::view_child_field_api()
- viewsFieldViewTestCase::testChildViewWithFieldapiField in tests/
views_field_view.test - Test a child view using a fieldapi field.
File
- tests/
views_field_view.test, line 233 - Contains the test for views_field_view
Class
- viewsFieldViewTestCase
- @file Contains the test for views_field_view
Code
protected function view_child_field_api() {
$view = new view();
$view->name = 'test_vfv_child_normal';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'test_vfv_child_normal';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE;
/* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view
->new_display('default', 'Master', 'default');
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Contextual filter: Content: Nid */
$handler->display->display_options['arguments']['field_test_name']['id'] = 'nid';
$handler->display->display_options['arguments']['field_test_name']['table'] = 'field_data_field_test_name';
$handler->display->display_options['arguments']['field_test_name']['field'] = 'field_test_name_value';
$handler->display->display_options['arguments']['field_test_name']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_test_name']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['field_test_name']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_test_name']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_test_name']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_test_name']['break_phrase'] = 1;
$handler->display->display_options['arguments']['field_test_name']['not'] = 0;
return $view;
}