public function FilterNumericTest::testFilterNumericExposedGroupedEmpty

File

drupal/core/modules/views/lib/Drupal/views/Tests/Handler/FilterNumericTest.php, line 287
Definition of Drupal\views\Tests\Handler\FilterNumericTest.

Class

FilterNumericTest
Tests the numeric filter handler.

Namespace

Drupal\views\Tests\Handler

Code

public function testFilterNumericExposedGroupedEmpty() {
  $filters = $this
    ->getGroupedExposedFilters();
  $view = views_get_view('test_view');
  $view->storage
    ->newDisplay('page', 'Page', 'page_1');

  // Filter: Age, Operator: empty, Value:
  $filters['age']['group_info']['default_group'] = 4;
  $view
    ->setDisplay('page_1');
  $view->displayHandlers['page_1']
    ->overrideOption('filters', $filters);
  $this
    ->executeView($view);
  $resultset = array();
  $this
    ->assertIdenticalResultset($view, $resultset, $this->column_map);
}