-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from open-source-contributions/improve_assertion
Improve null and boolean assertions
- Loading branch information
Showing
12 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ public function testGetPayoutRecipient() | |
self::assertEquals('[email protected]', $recipient->getEmail()); | ||
self::assertEquals('recipient1', $recipient->getLabel()); | ||
self::assertEquals('invited', $recipient->getStatus()); | ||
self::assertEquals(null, $recipient->getShopperId()); | ||
self::assertNull($recipient->getShopperId()); | ||
} | ||
|
||
public function testPayoutRecipientShouldCatchRestCliException(): void | ||
|
@@ -117,7 +117,7 @@ public function testDeletePayoutRecipient(): void | |
|
||
$result = $this->client->deletePayoutRecipient($payoutRecipientId); | ||
|
||
self::assertEquals(true, $result); | ||
self::assertTrue($result); | ||
} | ||
|
||
public function testPayoutRecipientRequestNotification(): void | ||
|
@@ -135,6 +135,6 @@ public function testPayoutRecipientRequestNotification(): void | |
|
||
$result = $this->client->requestPayoutRecipientNotification($payoutRecipientId); | ||
|
||
self::assertEquals(true, $result); | ||
self::assertTrue($result); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ public function testToArray() | |
self::assertEquals('[email protected]', $buyerProvidedInfoArray['emailAddress']); | ||
self::assertEquals('BTC', $buyerProvidedInfoArray['selectedTransactionCurrency']); | ||
self::assertEquals('4445556666', $buyerProvidedInfoArray['sms']); | ||
self::assertEquals(true, $buyerProvidedInfoArray['smsVerified']); | ||
self::assertTrue($buyerProvidedInfoArray['smsVerified']); | ||
} | ||
|
||
public function testToArrayEmptyKey() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters