function FilterStringTest::testFilterStringGroupedExposedStarts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Handler/FilterStringTest.php \Drupal\views\Tests\Handler\FilterStringTest::testFilterStringGroupedExposedStarts()
File
- core/
modules/ views/ src/ Tests/ Handler/ FilterStringTest.php, line 377 - Contains \Drupal\views\Tests\Handler\FilterStringTest.
Class
- FilterStringTest
- Tests the core Drupal\views\Plugin\views\filter\StringFilter handler.
Namespace
Drupal\views\Tests\HandlerCode
function testFilterStringGroupedExposedStarts() {
$filters = $this
->getGroupedExposedFilters();
$view = $this
->getBasicPageView();
// Filter: Name, Operator: starts, Value: George
$filters['description']['group_info']['default_group'] = 2;
$view
->setDisplay('page_1');
$view->displayHandlers
->get('page_1')
->overrideOption('filters', $filters);
$view
->save();
$this->container
->get('router.builder')
->rebuild();
$this
->executeView($view);
$resultset = array(
array(
'name' => 'George',
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->columnMap);
}