function OptionsListFilterTest::testViewsTestOptionsListFilter

Same name and namespace in other branches
  1. 9 core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php \Drupal\Tests\options\Kernel\Views\OptionsListFilterTest::testViewsTestOptionsListFilter()
  2. 8.9.x core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php \Drupal\Tests\options\Kernel\Views\OptionsListFilterTest::testViewsTestOptionsListFilter()
  3. 10 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\Views

Code

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.