diff --git a/tests/handlers/views_handler_filter_combine.test b/tests/handlers/views_handler_filter_combine.test index 99bf1eb5..5bf28d5e 100644 --- a/tests/handlers/views_handler_filter_combine.test +++ b/tests/handlers/views_handler_filter_combine.test @@ -78,6 +78,30 @@ class ViewsHandlerFilterCombineTest extends ViewsSqlTest { ), ); $this->assertIdenticalResultset($view, $resultset, $this->column_map); + $view->destroy(); + + // Test that we don't get results that are the byproduct of concatenating + // the fields. To do this we search for a string that does not exist in any + // of the fields but does exist when concatenating the fields with not + // enough spaces. + $view = $this->getBasicView(); + $view->display['default']->handler->override_option('filters', array( + 'age' => array( + 'id' => 'combine', + 'table' => 'views', + 'field' => 'combine', + 'relationship' => 'none', + 'operator' => 'contains', + 'fields' => array( + 'name', + 'job', + ), + 'value' => 'John Singer', + ), + )); + $this->executeView($view); + + $this->assertEqual(0, count($view->result)); } /**