You are here

public function ViewsPagerTest::viewsStorePagerSettings in Views (for Drupal 7) 7.3

1 call to ViewsPagerTest::viewsStorePagerSettings()
ViewsPagerTest::testStorePagerSettings in tests/views_pager.test
Pagers was sometimes not stored.

File

tests/views_pager.test, line 98
Definition of ViewsPagerTest.

Class

ViewsPagerTest
Tests the pluggable pager system.

Code

public function viewsStorePagerSettings() {
  $view = new view();
  $view->name = 'test_store_pager_settings';
  $view->description = '';
  $view->tag = '';
  $view->view_php = '';
  $view->base_table = 'node';
  $view->is_cacheable = FALSE;
  $view->api_version = 3;
  $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'] = 'none';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['exposed_form']['type'] = 'basic';
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'node';
  return $view;
}