[TEST] Fix test failure on Drupal 8 E2E PrevNextTest by only including contacts where...
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 19 May 2020 01:56:33 +0000 (11:56 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 19 May 2020 01:56:33 +0000 (11:56 +1000)
tests/phpunit/E2E/Core/PrevNextTest.php

index 64784fe9dd901473fd946841d2e33ce8acf2527a..4889f36e07abe4b50a888b41179327a1ae276dd7 100644 (file)
@@ -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";