function FilterStringTest::testFilterStringGroupedExposedEmpty

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterStringTest::testFilterStringGroupedExposedEmpty()
  2. 8.9.x core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterStringTest::testFilterStringGroupedExposedEmpty()
  3. 11.x core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterStringTest::testFilterStringGroupedExposedEmpty()

File

core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php, line 792

Class

FilterStringTest
Tests the core Drupal\views\Plugin\views\filter\StringFilter handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function testFilterStringGroupedExposedEmpty() : void {
  $filters = $this->getGroupedExposedFilters();
  $view = $this->getBasicPageView();
  // Filter: Description, Operator: empty, Value:
  $filters['description']['group_info']['default_group'] = 7;
  $view->setDisplay('page_1');
  $view->displayHandlers
    ->get('page_1')
    ->overrideOption('filters', $filters);
  $view->save();
  $this->executeView($view);
  $resultset = [
    [
      'name' => 'Meredith',
    ],
  ];
  $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}

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