summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test19
1 files changed, 12 insertions, 7 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test
index 20a9d4f..5fc60d8 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_basic.test
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Definition of ViewsBasicTest.
+ */
+
+/**
* Basic test class for Views query builder tests.
*/
class ViewsBasicTest extends ViewsSqlTest {
@@ -13,13 +18,13 @@ class ViewsBasicTest extends ViewsSqlTest {
}
/**
- * Test a trivial result set.
+ * Tests a trivial result set.
*/
public function testSimpleResultSet() {
$view = $this->getBasicView();
// Execute the view.
- $view->execute();
+ $this->executeView($view);
// Verify the result.
$this->assertEqual(5, count($view->result), t('The number of returned rows match.'));
@@ -30,7 +35,7 @@ class ViewsBasicTest extends ViewsSqlTest {
}
/**
- * Test filtering of the result set.
+ * Tests filtering of the result set.
*/
public function testSimpleFiltering() {
$view = $this->getBasicView();
@@ -58,7 +63,7 @@ class ViewsBasicTest extends ViewsSqlTest {
));
// Execute the view.
- $view->execute();
+ $this->executeView($view);
// Build the expected result.
$dataset = array(
@@ -88,7 +93,7 @@ class ViewsBasicTest extends ViewsSqlTest {
}
/**
- * Test simple argument.
+ * Tests simple argument.
*/
public function testSimpleArgument() {
$view = $this->getBasicView();
@@ -139,7 +144,7 @@ class ViewsBasicTest extends ViewsSqlTest {
// Execute with a view
$view->set_arguments(array(27));
- $view->execute();
+ $this->executeView($view);
// Build the expected result.
$dataset = array(
@@ -159,7 +164,7 @@ class ViewsBasicTest extends ViewsSqlTest {
// Test "show all" if no argument is present.
$view = $saved_view;
- $view->execute();
+ $this->executeView($view);
// Build the expected result.
$dataset = $this->dataSet();