You are here

protected function ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php \Drupal\Tests\content_moderation\Functional\ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset()

Execute a view and assert the expected results.

Parameters

\Drupal\views\ViewEntityInterface $view_entity: A view configuration entity.

array $expected: 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).

1 call to ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset()
ViewsModerationStateFilterTest::testWorkflowChanges in core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php
Tests the moderation state filter when the configured workflow is changed.

File

core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php, line 252

Class

ViewsModerationStateFilterTest
Tests the views 'moderation_state_filter' filter plugin.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function executeAndAssertIdenticalResultset(ViewEntityInterface $view_entity, $expected, $column_map) {
  $executable = $this->container
    ->get('views.executable')
    ->get($view_entity);
  $this
    ->executeView($executable);
  $this
    ->assertIdenticalResultset($executable, $expected, $column_map);
}