function FilterStringTest::testFilterStringGroupedExposedNotEnds
Tests grouped and exposed filters with the "does not end with" operator.
File
-
core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php, line 685
Class
- FilterStringTest
- Tests the core Drupal\views\Plugin\views\filter\StringFilter handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
public function testFilterStringGroupedExposedNotEnds() : void {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
// Filter: Description, Operator: not_ends, Value: Beatles.
$filters['description']['group_info']['default_group'] = 5;
$view->setDisplay('page_1');
$view->displayHandlers
->get('page_1')
->overrideOption('filters', $filters);
$view->save();
$this->executeView($view);
$resultset = [
[
'name' => 'John',
],
[
'name' => 'Paul',
],
];
$this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.