1 views_handler_filter_numeric.test | protected ViewsHandlerFilterNumericTest::getGroupedExposedFilters() |
File
- core/
modules/ views/ tests/ handlers/ views_handler_filter_numeric.test, line 347 - Definition of ViewsHandlerFilterNumericTest.
Class
- ViewsHandlerFilterNumericTest
- Tests the numeric filter handler.
Code
protected function getGroupedExposedFilters() {
$filters = array(
'age' => array(
'id' => 'age',
'table' => 'views_test',
'field' => 'age',
'relationship' => 'none',
'exposed' => TRUE,
'expose' => array(
'operator' => 'age_op',
'label' => 'age',
'identifier' => 'age',
),
'is_grouped' => TRUE,
'group_info' => array(
'label' => 'age',
'identifier' => 'age',
'default_group' => 'All',
'group_items' => array(
1 => array(
'title' => 'Age is 28',
'operator' => '=',
'value' => array('value' => 28),
),
2 => array(
'title' => 'Age is between 26 and 29',
'operator' => 'between',
'value' => array(
'min' => 26,
'max' => 29,
),
),
3 => array(
'title' => 'Age is not between 26 and 29',
'operator' => 'not between',
'value' => array(
'min' => 26,
'max' => 29,
),
),
4 => array(
'title' => 'Age is empty',
'operator' => 'empty',
),
5 => array(
'title' => 'Age is not empty',
'operator' => 'not empty',
),
),
),
),
);
return $filters;
}