function FilterEqualityTest::testNotEqual in Views (for Drupal 7) 8.3
File
- lib/
Drupal/ views/ Tests/ Handler/ FilterEqualityTest.php, line 82 - Definition of Drupal\views\Tests\Handler\FilterEqualityTest.
Class
- FilterEqualityTest
- Tests the core Drupal\views\Plugin\views\filter\Equality handler.
Namespace
Drupal\views\Tests\HandlerCode
function testNotEqual() {
$view = $this
->getView();
// Change the filtering
$view->displayHandlers['default']
->overrideOption('filters', array(
'name' => array(
'id' => 'name',
'table' => 'views_test_data',
'field' => 'name',
'relationship' => 'none',
'operator' => '!=',
'value' => array(
'value' => 'Ringo',
),
),
));
$this
->executeView($view);
$resultset = array(
array(
'name' => 'John',
),
array(
'name' => 'George',
),
array(
'name' => 'Paul',
),
array(
'name' => 'Meredith',
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->column_map);
}