function FilterStringTest::testFilterStringGroupedExposedEnds in Views (for Drupal 7) 8.3
File
- lib/
Drupal/ views/ Tests/ Handler/ FilterStringTest.php, line 452 - Definition of Drupal\views\Tests\Handler\FilterStringTest.
Class
- FilterStringTest
- Tests the core Drupal\views\Plugin\views\filter\String handler.
Namespace
Drupal\views\Tests\HandlerCode
function testFilterStringGroupedExposedEnds() {
$filters = $this
->getGroupedExposedFilters();
$view = $this
->getBasicPageView();
// Filter: Descriptino, Operator: ends, Value: Beatles
$filters['description']['group_info']['default_group'] = 4;
$view
->setDisplay('page_1');
$view->displayHandlers['page_1']
->overrideOption('filters', $filters);
$this
->executeView($view);
$resultset = array(
array(
'name' => 'George',
),
array(
'name' => 'Ringo',
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->column_map);
}