You are here

protected function ServicesViewsApiTestCase::assertIdenticalResultset in Services Views 7

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: An executed View.

$expected_result: An expected result set.

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

1 call to ServicesViewsApiTestCase::assertIdenticalResultset()
ServicesViewsSecurityUpgradePathTest::testClone in tests/services_views_upgrade_path.test
Test the upgraded clone to see if it produces the same output.

File

tests/services_views.test, line 80

Class

ServicesViewsApiTestCase

Code

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