Skip to content

Commit

Permalink
OX6-156: Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Boulanger committed Feb 1, 2024
1 parent c3edd55 commit dc0ac27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ public function test_getHashELVWithChecktype_Coverage()
$oTestObject->expects($this->any())->method('getPortalId')->will($this->returnValue('somePortalId'));
$oTestObject->expects($this->any())->method('getPortalKey')->will($this->returnValue('somePortalKey'));

$sExpectHash = md5('someSubaccountIdsomeChecktypesomeEncodingsomeMerchantIdtestsomePortalIdbankaccountcheckJSONsomePortalKey');
$sExpectHash = hash_hmac('sha384', 'someSubaccountIdsomeChecktypesomeEncodingsomeMerchantIdtestsomePortalIdbankaccountcheckJSON', 'somePortalKey');

$this->assertEquals($sExpectHash, $this->invokeMethod($oTestObject, 'getHashELVWithChecktype'));
}
Expand Down Expand Up @@ -1131,7 +1131,7 @@ public function test_getHashELVWithoutChecktype_Coverage()
$oTestObject->expects($this->any())->method('getPortalId')->will($this->returnValue('somePortalId'));
$oTestObject->expects($this->any())->method('getPortalKey')->will($this->returnValue('somePortalKey'));

$sExpectHash = md5('someSubaccountIdsomeEncodingsomeMerchantIdtestsomePortalIdbankaccountcheckJSONsomePortalKey');
$sExpectHash = hash_hmac('sha384', 'someSubaccountIdsomeEncodingsomeMerchantIdtestsomePortalIdbankaccountcheckJSON', 'somePortalKey');

$this->assertEquals($sExpectHash, $this->invokeMethod($oTestObject, 'getHashELVWithoutChecktype'));
}
Expand Down

0 comments on commit dc0ac27

Please sign in to comment.