function ViewsUpgradeTestCase::viewsMovedToHandler
1 call to ViewsUpgradeTestCase::viewsMovedToHandler()
- ViewsUpgradeTestCase::testMovedTo in tests/
views_upgrade.test - Tests the moved to parameter in general.
File
-
tests/
views_upgrade.test, line 156
Class
- ViewsUpgradeTestCase
- Try to test the upgrade path of all conversions.
Code
public function viewsMovedToHandler() {
$view = new view();
$view->name = 'test_views_move_to_handler';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'views_test';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$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['fields']['old_field_2']['id'] = 'old_field_2';
$handler->display->display_options['fields']['old_field_2']['table'] = 'views_test';
$handler->display->display_options['fields']['old_field_2']['field'] = 'old_field_2';
$handler->display->display_options['filters']['old_field_3']['id'] = 'old_field_3';
$handler->display->display_options['filters']['old_field_3']['table'] = 'views_test';
$handler->display->display_options['filters']['old_field_3']['field'] = 'old_field_3';
return $view;
}