function FilterNumericTest::testFilterNumericExposedGroupedEmpty

File

core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php, line 366

Class

FilterNumericTest
Tests the numeric filter handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function testFilterNumericExposedGroupedEmpty() {
  $filters = $this->getGroupedExposedFilters();
  $view = Views::getView('test_view');
  $view->newDisplay('page', 'Page', 'page_1');
  // Filter: Age, Operator: empty, Value:
  $filters['age']['group_info']['default_group'] = 4;
  $view->setDisplay('page_1');
  $view->displayHandlers
    ->get('page_1')
    ->overrideOption('filters', $filters);
  $view->save();
  $this->executeView($view);
  $resultset = [];
  $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.