1 views_handler_filter_string.test | ViewsHandlerFilterStringTest::testFilterStringNotEnds() |
File
- core/
modules/ views/ tests/ handlers/ views_handler_filter_string.test, line 461 - Definition of ViewsHandlerFilterStringTest.
Class
- ViewsHandlerFilterStringTest
- Tests the core views_handler_filter_string handler.
Code
function testFilterStringNotEnds() {
$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' => 'not_ends',
'value' => 'Beatles.',
),
));
$this->executeView($view);
$resultset = array(
array(
'name' => 'John',
),
array(
'name' => 'Paul',
),
// There is no Meredith returned because his description is empty
);
$this->assertIdenticalResultset($view, $resultset, $this->column_map);
}