function ViewsSqlTest::getBasicPageView
Build and return a Page view of the views_test table.
Return value
view
22 calls to ViewsSqlTest::getBasicPageView()
- ViewsHandlerFilterEqualityTest::testEqualGroupedExposed in tests/
handlers/ views_handler_filter_equality.test - ViewsHandlerFilterEqualityTest::testEqualGroupedNotExposed in tests/
handlers/ views_handler_filter_equality.test - ViewsHandlerFilterInOperator::testFilterInOperatorGroupedExposedSimple in tests/
handlers/ views_handler_filter_in_operator.test - ViewsHandlerFilterInOperator::testFilterNotInOperatorGroupedExposedSimple in tests/
handlers/ views_handler_filter_in_operator.test - ViewsHandlerFilterNumericTest::applyFilterNumericExposedOperator in tests/
handlers/ views_handler_filter_numeric.test - Tests exposed numeric filter with an individual exposed operator.
File
-
tests/
views_query.test, line 501
Class
Code
protected function getBasicPageView() {
views_include('view');
$view = $this->getBasicView();
// In order to test exposed filters, we have to disable the exposed forms
// cache.
drupal_static_reset('views_exposed_form_cache');
$view->new_display('page', 'Page', 'page_1');
return $view;
}