1 views_handler_filter_string.test | ViewsHandlerFilterStringTest::testFilterStringGroupedExposedStarts() |
File
- core/
modules/ views/ tests/ handlers/ views_handler_filter_string.test, line 336 - Definition of ViewsHandlerFilterStringTest.
Class
- ViewsHandlerFilterStringTest
- Tests the core views_handler_filter_string handler.
Code
function testFilterStringGroupedExposedStarts() {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
// Filter: Name, Operator: starts, Value: George
$filters['description']['group_info']['default_group'] = 2;
$view->set_display('page_1');
$view->display['page_1']->handler->override_option('filters', $filters);
$this->executeView($view);
$resultset = array(
array(
'name' => 'George',
),
);
$this->assertIdenticalResultset($view, $resultset, $this->column_map);
}