You are here

protected function ViewsTestCase::assertIdenticalResultset in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 tests/views_query.test \ViewsTestCase::assertIdenticalResultset()

Helper function: verify a result set returned by view.

The comparison is done on the string representation of the columns of the column map, taking the order of the rows into account, but not the order of the columns.

Parameters

view $view: An executed View.

array $expected_result: An expected result set.

array $column_map: An associative array mapping the columns of the result set from the view (as keys) and the expected result set (as values).

53 calls to ViewsTestCase::assertIdenticalResultset()
ViewsBasicTest::testSimpleResultSet in tests/views_basic.test
Tests a trivial result set.
viewsHandlerArgumentCommentUserUidTest::testCommentUserUidTest in tests/comment/views_handler_argument_comment_user_uid.test
ViewsHandlerFilterCombineTest::testFilterCombineContains in tests/handlers/views_handler_filter_combine.test
ViewsHandlerFilterDateTest::testBetween in tests/handlers/views_handler_filter_date.test
Tests the filter operator between/not between.
ViewsHandlerFilterDateTest::testOffset in tests/handlers/views_handler_filter_date.test
Test the general offset functionality.

... See full list

File

tests/views_query.test, line 38
Abstract class for views testing.

Class

ViewsTestCase

Code

protected function assertIdenticalResultset($view, $expected_result, $column_map = array(), $message = 'Identical result set') {
  return $this
    ->assertIdenticalResultsetHelper($view, $expected_result, $column_map, $message, 'assertIdentical');
}