Skip to content

Commit

Permalink
Merge pull request #16219 from seamuslee001/nfc_test_followup_16150
Browse files Browse the repository at this point in the history
[NFC] Test update following PR #16150, assertEquals first param is th…
  • Loading branch information
seamuslee001 authored Jan 7, 2020
2 parents af4388a + 9b4b005 commit 050abb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/CRM/Case/BAO/CaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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));
}

/**
Expand Down

0 comments on commit 050abb2

Please sign in to comment.