protected function ViewsHandlerFilterNumericTest::getGroupedExposedFilters in Views (for Drupal 7) 7.3
6 calls to ViewsHandlerFilterNumericTest::getGroupedExposedFilters()
- ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedBetween in tests/
handlers/ views_handler_filter_numeric.test - ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedEmpty in tests/
handlers/ views_handler_filter_numeric.test - ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedNotBetween in tests/
handlers/ views_handler_filter_numeric.test - ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedNotEmpty in tests/
handlers/ views_handler_filter_numeric.test - ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedSimple in tests/
handlers/ views_handler_filter_numeric.test
File
- tests/
handlers/ views_handler_filter_numeric.test, line 650 - 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;
}