function OptionsListFilterTest::testViewsTestOptionsListFilter
Same name in other branches
- 9 core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php \Drupal\Tests\options\Kernel\Views\OptionsListFilterTest::testViewsTestOptionsListFilter()
- 8.9.x core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php \Drupal\Tests\options\Kernel\Views\OptionsListFilterTest::testViewsTestOptionsListFilter()
- 11.x core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php \Drupal\Tests\options\Kernel\Views\OptionsListFilterTest::testViewsTestOptionsListFilter()
Tests options list field filter.
File
-
core/
modules/ options/ tests/ src/ Kernel/ Views/ OptionsListFilterTest.php, line 27
Class
- OptionsListFilterTest
- Tests options list filter for views.
Namespace
Drupal\Tests\options\Kernel\ViewsCode
public function testViewsTestOptionsListFilter() : void {
$view = Views::getView('test_options_list_filter');
$this->executeView($view);
$resultset = [
[
'nid' => $this->nodes[0]->nid->value,
],
[
'nid' => $this->nodes[1]->nid->value,
],
];
$column_map = [
'nid' => 'nid',
];
$this->assertIdenticalResultset($view, $resultset, $column_map);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.