function ViewsHandlerFilterEqualityTest::testEqual in Views (for Drupal 7) 7.3
File
- tests/
handlers/ views_handler_filter_equality.test, line 38 - Definition of ViewsHandlerFilterEqualityTest.
Class
- ViewsHandlerFilterEqualityTest
- Tests the core views_handler_filter_equality handler.
Code
function testEqual() {
$view = $this
->getBasicView();
// Change the filtering.
$view->display['default']->handler
->override_option('filters', array(
'name' => array(
'id' => 'name',
'table' => 'views_test',
'field' => 'name',
'relationship' => 'none',
'operator' => '=',
'value' => array(
'value' => 'Ringo',
),
),
));
$this
->executeView($view);
$resultset = array(
array(
'name' => 'Ringo',
),
);
$this
->assertIdenticalResultset($view, $resultset, $this->column_map);
}