1 views_basic.test public ViewsBasicTest::testSimpleResultSet()

Tests a trivial result set.

File

core/modules/views/tests/views_basic.test, line 17
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',
  ));
}