function FilterStringTest::testFilterStringGroupedExposedShorter 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::testFilterStringGroupedExposedShorter()
File
- core/
modules/ views/ src/ Tests/ Handler/ FilterStringTest.php, line 648 - Contains \Drupal\views\Tests\Handler\FilterStringTest.
Class
- FilterStringTest
- Tests the core Drupal\views\Plugin\views\filter\StringFilter handler.
Namespace
Drupal\views\Tests\HandlerCode
function testFilterStringGroupedExposedShorter() {
$filters = $this
->getGroupedExposedFilters();
$view = $this
->getBasicPageView();
// Filter: Name, Operator: shorterthan, Value: 5
$filters['name']['group_info']['default_group'] = 4;
$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' => 'John',
),
array(
'name' => 'Paul',
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->columnMap);
}