From 9b4b0055ccf44a6baf5384dedc944674001db39e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 7 Jan 2020 12:36:22 +1100 Subject: [PATCH] [NFC] Test update following PR #16150, assertEquals first param is the expected value not the current value --- tests/phpunit/CRM/Case/BAO/CaseTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Case/BAO/CaseTest.php b/tests/phpunit/CRM/Case/BAO/CaseTest.php index 9303e52ba324..f90a5da77d4a 100644 --- a/tests/phpunit/CRM/Case/BAO/CaseTest.php +++ b/tests/phpunit/CRM/Case/BAO/CaseTest.php @@ -383,7 +383,7 @@ public function testGetGlobalContacts() { CRM_Core_Config::singleton()->userPermissionClass->permissions = []; $groupInfo = []; $groupContacts = CRM_Case_BAO_Case::getGlobalContacts($groupInfo); - $this->assertEquals(count($groupContacts), 0); + $this->assertEquals(0, count($groupContacts)); //Verify if contact is returned correctly. CRM_Core_Config::singleton()->userPermissionClass->permissions = [ @@ -392,8 +392,8 @@ public function testGetGlobalContacts() { ]; $groupInfo = []; $groupContacts = CRM_Case_BAO_Case::getGlobalContacts($groupInfo); - $this->assertEquals(count($groupContacts), 1); - $this->assertEquals(key($groupContacts), $caseResourceContactID); + $this->assertEquals(1, count($groupContacts)); + $this->assertEquals($caseResourceContactID, key($groupContacts)); } /**