1 views_handler_filter_numeric.test public ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedNotBetween()

File

core/modules/views/tests/handlers/views_handler_filter_numeric.test, line 175
Definition of ViewsHandlerFilterNumericTest.

Class

ViewsHandlerFilterNumericTest
Tests the numeric filter handler.

Code

public function testFilterNumericExposedGroupedNotBetween() {
  $filters = $this->getGroupedExposedFilters();
  $view = $this->getBasicPageView();

  // Filter: Age, Operator: 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);
}