summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test19
1 files changed, 18 insertions, 1 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test
index ea4e2bc..735df0e 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_query.test
@@ -367,7 +367,7 @@ abstract class ViewsSqlTest extends ViewsTestCase {
// Create the basic view.
$view = new view();
- $view->vid = 'test_view';
+ $view->name = 'test_view';
$view->add_display('default');
$view->base_table = 'views_test';
@@ -413,4 +413,21 @@ abstract class ViewsSqlTest extends ViewsTestCase {
return $view;
}
+
+ /**
+ * Build and return a Page view of the views_test table.
+ *
+ * @return view
+ */
+ 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');
+
+ $display = $view->new_display('page', 'Page', 'page_1');
+ return $view;
+ }
}