function ViewsViewTest::view_test_delete

Creates a test view.

1 call to ViewsViewTest::view_test_delete()
ViewsViewTest::testDelete in tests/views_view.test
Test deleting a view.

File

tests/views_view.test, line 280

Class

ViewsViewTest

Code

public function view_test_delete() {
    $view = new view();
    $view->name = 'test_view_delete';
    $view->description = '';
    $view->tag = '';
    $view->base_table = 'node';
    $view->human_name = 'test_view_delete';
    $view->core = 7;
    $view->api_version = '3.0-alpha1';
    $view->disabled = FALSE;
    
    /* Edit this to true to make a default view disabled initially */
    
    /* Display: Defaults */
    $handler = $view->new_display('default', 'Defaults', 'default');
    $handler->display->display_options['access']['type'] = 'none';
    $handler->display->display_options['cache']['type'] = 'none';
    $handler->display->display_options['query']['type'] = 'views_query';
    $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';
    // @codingStandardsIgnoreLine
    $translatables['test_view_delete'] = array(
        t('Defaults'),
        t('more'),
        t('Apply'),
        t('Reset'),
        t('Sort By'),
        t('Asc'),
        t('Desc'),
        t('Items per page'),
        t('- All -'),
        t('Offset'),
    );
    return $view;
}