public function ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedEmpty in Views (for Drupal 7) 7.3
File
- tests/
handlers/ views_handler_filter_numeric.test, line 301 - Definition of ViewsHandlerFilterNumericTest.
Class
- ViewsHandlerFilterNumericTest
- Tests the numeric filter handler.
Code
public function testFilterNumericExposedGroupedEmpty() {
$filters = $this
->getGroupedExposedFilters();
$view = $this
->getBasicPageView();
// Filter: Age, Operator: empty, Value.
$filters['age']['group_info']['default_group'] = 4;
$view
->set_display('page_1');
$view->display['page_1']->handler
->override_option('filters', $filters);
$this
->executeView($view);
$resultset = array(
array(
'name' => 'Charles',
'age' => NULL,
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->column_map);
}