Skip to content

Commit

Permalink
Extracted magic value. (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Dec 27, 2017
1 parent 91ed2ee commit bf43b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Http/ErrorResponseIdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
*/
class ErrorResponseIdTest extends BunqSdkTestBase
{
/**
* Invalid user id to trigger BadRequestException
*/
const INVALID_USER_PERSON_ID = 0;

/**
*/
public function testBadRequestWitResponseId()
Expand All @@ -18,6 +23,7 @@ public function testBadRequestWitResponseId()

try {
UserPerson::get(static::$apiContext, 0);
UserPerson::get(static::$apiContext, self::INVALID_USER_PERSON_ID);
} catch (BadRequestException $exception) {
$caughtExcretion = $exception;
}
Expand Down

0 comments on commit bf43b95

Please sign in to comment.