1 views_handler_filter_string.test | ViewsHandlerFilterStringTest::testFilterStringContains() |
File
- core/
modules/ views/ tests/ handlers/ views_handler_filter_string.test, line 175 - Definition of ViewsHandlerFilterStringTest.
Class
- ViewsHandlerFilterStringTest
- Tests the core views_handler_filter_string handler.
Code
function testFilterStringContains() {
$view = $this->getBasicView();
// Change the filtering
$view->display['default']->handler->override_option('filters', array(
'name' => array(
'id' => 'name',
'table' => 'views_test',
'field' => 'name',
'relationship' => 'none',
'operator' => 'contains',
'value' => 'ing',
),
));
$this->executeView($view);
$resultset = array(
array(
'name' => 'Ringo',
),
);
$this->assertIdenticalResultset($view, $resultset, $this->column_map);
}