1 views_handler_filter_numeric.test | public ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedSimple() |
File
- core/
modules/ views/ tests/ handlers/ views_handler_filter_numeric.test, line 56 - Definition of ViewsHandlerFilterNumericTest.
Class
- ViewsHandlerFilterNumericTest
- Tests the numeric filter handler.
Code
public function testFilterNumericExposedGroupedSimple() {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
// Filter: Age, Operator: =, Value: 28
$filters['age']['group_info']['default_group'] = 1;
$view->set_display('page_1');
$view->display['page_1']->handler->override_option('filters', $filters);
$this->executeView($view);
$resultset = array(
array(
'name' => 'Ringo',
'age' => 28,
),
);
$this->assertIdenticalResultset($view, $resultset, $this->column_map);
}