Commit 836d4634 authored by alexpott's avatar alexpott

Issue #2471609 by jcnventura, pguillard: FilterTest testFilterQuery wrong assert message

parent 8d9f1eaf
......@@ -88,7 +88,8 @@ public function testFilterQuery() {
$this->assertIdentical($view->filter['test_filter']->operator, '=');
$this->assertIdentical($view->filter['test_filter']->value, 'John');
// Check that we have some results.
// Check that we have a single element, as a result of applying the '= John'
// filter.
$this->assertEqual(count($view->result), 1, format_string('Results were returned. @count results.', array('@count' => count($view->result))));
$view->destroy();
......@@ -113,9 +114,9 @@ public function testFilterQuery() {
$this->assertIdentical($view->filter['test_filter']->operator, '<>');
$this->assertIdentical($view->filter['test_filter']->value, 'John');
// Test that no nodes have been returned (Only 'page' type nodes should
// exist).
$this->assertEqual(count($view->result), 4, format_string('No results were returned. @count results.', array('@count' => count($view->result))));
// Check if we have the other elements in the dataset, as a result of
// applying the '<> John' filter.
$this->assertEqual(count($view->result), 4, format_string('Results were returned. @count results.', array('@count' => count($view->result))));
$view->destroy();
$view->initDisplay();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment