public function FilterEqualityTest::testEqualGroupedNotExposed in Views (for Drupal 7) 8.3
File
- lib/
Drupal/ views/ Tests/ Handler/ FilterEqualityTest.php, line 115 - Definition of Drupal\views\Tests\Handler\FilterEqualityTest.
Class
- FilterEqualityTest
- Tests the core Drupal\views\Plugin\views\filter\Equality handler.
Namespace
Drupal\views\Tests\HandlerCode
public function testEqualGroupedNotExposed() {
$filters = $this
->getGroupedExposedFilters();
$view = $this
->getBasicPageView();
// Filter: Name, Operator: !=, Value: Ringo
$filters['name']['group_info']['default_group'] = 2;
$view
->setDisplay('page_1');
$view->displayHandlers['page_1']
->overrideOption('filters', $filters);
$this
->executeView($view);
$resultset = array(
array(
'name' => 'John',
),
array(
'name' => 'George',
),
array(
'name' => 'Paul',
),
array(
'name' => 'Meredith',
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->column_map);
}