function ViewsBasicTest::testSimpleResultSet

Tests a trivial result set.

File

tests/views_basic.test, line 29

Class

ViewsBasicTest

Code

public function testSimpleResultSet() {
    $view = $this->getBasicView();
    // Execute the view.
    $this->executeView($view);
    // Verify the result.
    $this->assertEqual(5, count($view->result), t('The number of returned rows match.'));
    $this->assertIdenticalResultset($view, $this->dataSet(), array(
        'views_test_name' => 'name',
        'views_test_age' => 'age',
    ));
}