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