public function ViewsBasicTest::testSimpleResultSet
3.x views_basic.test | public ViewsBasicTest::testSimpleResultSet() |
Tests a trivial result set.
File
- tests/
views_basic.test, line 23 - Definition of ViewsBasicTest.
Class
- ViewsBasicTest
- Basic test class for Views query builder tests.
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',
));
}