From 700914cd7762336457ca3b1b13c3f2bb25f71421 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 16 Jun 2021 08:36:28 +0000 Subject: [PATCH] [php8-compact][NFC] Update testGroupClause unit test to work on php8 --- tests/phpunit/CRM/Contact/BAO/QueryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/BAO/QueryTest.php b/tests/phpunit/CRM/Contact/BAO/QueryTest.php index a06fe358383f..da05aa6b1549 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -1007,7 +1007,7 @@ public function testGroupClause() { $this->assertEquals(3, $dao->N); $this->assertFalse(strstr($sql, ' OR '), 'Query does not include or'); while ($dao->fetch()) { - $this->assertTrue(($dao->groups == $groupID || $dao->groups == ',' . $groupID), $dao->groups . ' includes ' . $groupID); + $this->assertTrue(($dao->groups == $groupID || $dao->groups == ',' . $groupID || $dao->groups == $groupID . ',' . $groupID), $dao->groups . ' includes ' . $groupID); } }