You are here

protected function ViewTestBase::getBasicPageView in Views (for Drupal 7) 8.3

Build and return a Page view of the views_test_data table.

Return value

view

21 calls to ViewTestBase::getBasicPageView()
FilterEqualityTest::testEqualGroupedExposed in lib/Drupal/views/Tests/Handler/FilterEqualityTest.php
FilterEqualityTest::testEqualGroupedNotExposed in lib/Drupal/views/Tests/Handler/FilterEqualityTest.php
FilterInOperatorTest::testFilterInOperatorGroupedExposedSimple in lib/Drupal/views/Tests/Handler/FilterInOperatorTest.php
FilterInOperatorTest::testFilterNotInOperatorGroupedExposedSimple in lib/Drupal/views/Tests/Handler/FilterInOperatorTest.php
FilterNumericTest::testFilterNumericExposedGroupedBetween in lib/Drupal/views/Tests/Handler/FilterNumericTest.php

... See full list

File

lib/Drupal/views/Tests/ViewTestBase.php, line 189
Definition of Drupal\views\Tests\ViewTestBase.

Class

ViewTestBase
Abstract class for views testing.

Namespace

Drupal\views\Tests

Code

protected function getBasicPageView() {
  $view = $this
    ->getView();

  // In order to test exposed filters, we have to disable
  // the exposed forms cache.
  drupal_static_reset('views_exposed_form_cache');
  $display = $view->storage
    ->newDisplay('page', 'Page', 'page_1');
  return $view;
}