Skip to content
Snippets Groups Projects
Commit 836d4634 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 8d9f1eaf
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment