Skip to content

Commit

Permalink
Update unittest (#657)
Browse files Browse the repository at this point in the history
* updated Mobile to mobile

* changed  Active to active
  • Loading branch information
DjoykeAbyah authored May 16, 2024
1 parent d3141e3 commit d840d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/NotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public static function successNotificationTestProvider()

public function testBankingWebhookParser()
{
$jsonString = '{ "data": {"balancePlatform":"YOUR_BALANCE_PLATFORM","accountHolder":{"contactDetails":{"address":{"country":"NL","houseNumberOrName":"274","postalCode":"1020CD","street":"Brannan Street"},"email": "[email protected]","phone": {"number": "+315551231234","type": "Mobile"}},"description": "S.Hopper - Staff 123","id": "AH00000000000000000000001","status": "Active"}},"environment": "test","type": "balancePlatform.accountHolder.created"}';
$jsonString = '{ "data": {"balancePlatform":"YOUR_BALANCE_PLATFORM","accountHolder":{"contactDetails":{"address":{"country":"NL","houseNumberOrName":"274","postalCode":"1020CD","street":"Brannan Street"},"email": "[email protected]","phone": {"number": "+315551231234","type": "mobile"}},"description": "S.Hopper - Staff 123","id": "AH00000000000000000000001","status": "active"}},"environment": "test","type": "balancePlatform.accountHolder.created"}';
$webhookParser = new BankingWebhookParser($jsonString);
$result = $webhookParser->getAccountHolderNotificationRequest();
self::assertEquals("test", $result->getEnvironment());
Expand Down

0 comments on commit d840d57

Please sign in to comment.