function ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset
Same name in other branches
- 8.9.x core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php \Drupal\Tests\content_moderation\Functional\ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset()
- 10 core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php \Drupal\Tests\content_moderation\Functional\ViewsModerationStateFilterTest::executeAndAssertIdenticalResultset()
- 11.x 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\FunctionalCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.