From 0e6bafb9a6ac66940d8d6b917267ec195305e377 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 21 Jun 2020 08:55:29 +1000 Subject: [PATCH] [NFC] Fix Unit test failure on MySQL 8 due to mysql ordering issue --- tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php index 6fd24f0289..daf1209e54 100644 --- a/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php +++ b/tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php @@ -77,7 +77,8 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase { // check for all contact types $result = CRM_Contact_BAO_ContactType::subTypes(); - $this->assertEquals(array_keys($this->getExpectedAllSubtypes()), $result); + $subtypes = array_keys($this->getExpectedAllSubtypes()); + $this->assertEquals(sort($subtypes), sort($result)); } /** -- 2.25.1