You are here

public function ViewsBasicTest::testSimpleResultSet in Views (for Drupal 7) 7.3

Tests a trivial result set.

File

tests/views_basic.test, line 25

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',
  ));
}