From ea71481141c4ababf6a2a1b578a7cd9cfe90521a Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 19 May 2020 11:56:33 +1000 Subject: [PATCH] [TEST] Fix test failure on Drupal 8 E2E PrevNextTest by only including contacts where there is a sort name --- tests/phpunit/E2E/Core/PrevNextTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/E2E/Core/PrevNextTest.php b/tests/phpunit/E2E/Core/PrevNextTest.php index 64784fe9dd..4889f36e07 100644 --- a/tests/phpunit/E2E/Core/PrevNextTest.php +++ b/tests/phpunit/E2E/Core/PrevNextTest.php @@ -48,7 +48,7 @@ class PrevNextTest extends \CiviEndToEndTestCase { $prefillLimit = 25; $sort = NULL; - $query = new \CRM_Contact_BAO_Query(array(), NULL, NULL, FALSE, FALSE, 1, FALSE, TRUE, FALSE, NULL, 'AND'); + $query = new \CRM_Contact_BAO_Query([['sort_name', 'IS NOT NULL', 1, 0, 0]], NULL, NULL, FALSE, FALSE, 1, FALSE, TRUE, FALSE, NULL, 'AND'); $sql = $query->searchQuery($start, $prefillLimit, $sort, FALSE, $query->_includeContactIds, FALSE, TRUE, TRUE); $selectSQL = "SELECT DISTINCT %1, contact_a.id, contact_a.sort_name"; -- 2.25.1