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