You are here

protected function ViewTestBase::assertIdenticalResultset in Views (for Drupal 7) 8.3

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).

61 calls to ViewTestBase::assertIdenticalResultset()
ArgumentDefaultTest::testArgumentDefaultPlugin in lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php
Tests the argument default test plugin.
ArgumentLanguage::testFilter in lib/Drupal/views/Tests/Language/ArgumentLanguage.php
ArgumentUserUIDTest::testCommentUserUIDTest in lib/Drupal/views/Tests/Comment/ArgumentUserUIDTest.php
BasicTest::testSimpleResultSet in lib/Drupal/views/Tests/BasicTest.php
Tests a trivial result set.
DefaultViewRecentComments::testBlockDisplay in lib/Drupal/views/Tests/Comment/DefaultViewRecentComments.php
Tests the block defined by the comments_recent view.

... See full list

File

lib/Drupal/views/Tests/ViewTestBase.php, line 86
Definition of Drupal\views\Tests\ViewTestBase.

Class

ViewTestBase
Abstract class for views testing.

Namespace

Drupal\views\Tests

Code

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