function ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedNotBetween

File

tests/handlers/views_handler_filter_numeric.test, line 230

Class

ViewsHandlerFilterNumericTest
Tests the numeric filter handler.

Code

public function testFilterNumericExposedGroupedNotBetween() {
  $filters = $this->getGroupedExposedFilters();
  $view = $this->getBasicPageView();
  // Filter: Age, Operator: not between, Value: 26 and 29.
  $filters['age']['group_info']['default_group'] = 3;
  $view->set_display('page_1');
  $view->display['page_1']->handler
    ->override_option('filters', $filters);
  $this->executeView($view);
  $resultset = array(
    array(
      'name' => 'John',
      'age' => 25,
    ),
    array(
      'name' => 'Paul',
      'age' => 26,
    ),
    array(
      'name' => 'Meredith',
      'age' => 30,
    ),
  );
  $this->assertIdenticalResultset($view, $resultset, $this->column_map);
}