protected function ViewResultAssertionTrait::assertIdenticalResultset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/ViewResultAssertionTrait.php \Drupal\views\Tests\ViewResultAssertionTrait::assertIdenticalResultset()
Verifies that a result set returned by a View matches expected values.
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
\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 'Identical result set.'
Return value
bool TRUE if the assertion succeeded, or FALSE otherwise.
100 calls to ViewResultAssertionTrait::assertIdenticalResultset()
- ArgumentDateTest::testCreatedFullDateHandler in core/
modules/ views/ src/ Tests/ Handler/ ArgumentDateTest.php - Tests the CreatedFullDate handler.
- ArgumentDateTest::testDayHandler in core/
modules/ views/ src/ Tests/ Handler/ ArgumentDateTest.php - Tests the Day handler.
- ArgumentDateTest::testMonthHandler in core/
modules/ views/ src/ Tests/ Handler/ ArgumentDateTest.php - Tests the Month handler.
- ArgumentDateTest::testWeekHandler in core/
modules/ views/ src/ Tests/ Handler/ ArgumentDateTest.php - Tests the Week handler.
- ArgumentDateTest::testYearHandler in core/
modules/ views/ src/ Tests/ Handler/ ArgumentDateTest.php - Tests the Year handler.
File
- core/
modules/ views/ src/ Tests/ ViewResultAssertionTrait.php, line 38 - Contains \Drupal\views\Tests\ViewResultAssertionTrait.
Class
- ViewResultAssertionTrait
- Provides a class for assertions to check for the expected result of a View.
Namespace
Drupal\views\TestsCode
protected function assertIdenticalResultset($view, $expected_result, $column_map = array(), $message = NULL) {
return $this
->assertIdenticalResultsetHelper($view, $expected_result, $column_map, 'assertIdentical', $message);
}