You are here

public function ViewsHandlerFilterNumericTest::testFilterNumericExposedGroupedSimple in Views (for Drupal 7) 7.3

File

tests/handlers/views_handler_filter_numeric.test, line 91
Definition of ViewsHandlerFilterNumericTest.

Class

ViewsHandlerFilterNumericTest
Tests the numeric filter handler.

Code

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

  // Filter: Age, Operator: =, Value: 28
  $filters['age']['group_info']['default_group'] = 1;
  $view
    ->set_display('page_1');
  $view->display['page_1']->handler
    ->override_option('filters', $filters);
  $this
    ->executeView($view);
  $resultset = array(
    array(
      'name' => 'Ringo',
      'age' => 28,
    ),
  );
  $this
    ->assertIdenticalResultset($view, $resultset, $this->column_map);
}