protected function ViewUnitTestBase::assertNotIdenticalResultset

Verifies that a result set returned by a View differs from certain values.

Inverse of ViewsTestCase::assertIdenticalResultset().

Parameters

\Drupal\views\ViewExecutable $view: An executed View.

array $expected_result: An expected result set.

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

string $message: (optional) A custom message to display with the assertion. Defaults to 'Non-identical result set.'

Return value

bool TRUE if the assertion succeeded, or FALSE otherwise.

1 call to ViewUnitTestBase::assertNotIdenticalResultset()
SortRandomTest::testRandomOrdering in drupal/core/modules/views/lib/Drupal/views/Tests/Handler/SortRandomTest.php
Tests random ordering of the result set.

File

drupal/core/modules/views/lib/Drupal/views/Tests/ViewUnitTestBase.php, line 115
Contains \Drupal\views\Tests\ViewUnitTestBase.

Class

ViewUnitTestBase
Defines a base class for Views unit testing.

Namespace

Drupal\views\Tests

Code

protected function assertNotIdenticalResultset($view, $expected_result, $column_map = array(), $message = NULL) {
  return $this
    ->assertIdenticalResultsetHelper($view, $expected_result, $column_map, 'assertNotIdentical', $message);
}