public function FilterNumericTest::testFilterNumericExposedGroupedEmpty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Handler/FilterNumericTest.php \Drupal\views\Tests\Handler\FilterNumericTest::testFilterNumericExposedGroupedEmpty()
File
- core/
modules/ views/ src/ Tests/ Handler/ FilterNumericTest.php, line 294 - Contains \Drupal\views\Tests\Handler\FilterNumericTest.
Class
- FilterNumericTest
- Tests the numeric filter handler.
Namespace
Drupal\views\Tests\HandlerCode
public function testFilterNumericExposedGroupedEmpty() {
$filters = $this
->getGroupedExposedFilters();
$view = Views::getView('test_view');
$view
->newDisplay('page', 'Page', 'page_1');
// Filter: Age, Operator: empty, Value:
$filters['age']['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();
$this
->assertIdenticalResultset($view, $resultset, $this->columnMap);
}