1 views_handler_filter_string.test | ViewsHandlerFilterStringTest::testFilterStringGroupedExposedNotEnds() |
File
- core/
modules/ views/ tests/ handlers/ views_handler_filter_string.test, line 489 - Definition of ViewsHandlerFilterStringTest.
Class
- ViewsHandlerFilterStringTest
- Tests the core views_handler_filter_string handler.
Code
function testFilterStringGroupedExposedNotEnds() {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
// Filter: Description, Operator: not_ends, Value: Beatles
$filters['description']['group_info']['default_group'] = 5;
$view->set_display('page_1');
$view->display['page_1']->handler->override_option('filters', $filters);
$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);
}