Skip to content

Commit

Permalink
Update error message in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Jun 27, 2022
1 parent e86be9c commit dedc76e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ErrorsTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testBadRequest()
$options = new ServerCreateOptions();
$client->servers->create($options);
} catch(MailosaurException $e) {
$this->assertEquals('(name) Please provide a name for your server\r\n', $e->getMessage());
$this->assertEquals('(name) Servers need a name\r\n', $e->getMessage());
}
}
}
2 changes: 1 addition & 1 deletion tests/ServersTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testFailedCreate()
$options = new ServerCreateOptions();
self::$client->servers->create($options);
} catch(MailosaurException $e) {
$this->assertEquals('(name) Please provide a name for your server\r\n', $e->getMessage());
$this->assertEquals('(name) Servers need a name\r\n', $e->getMessage());
$this->assertEquals('invalid_request', $e->errorType);
$this->assertEquals(400, $e->httpStatusCode);
$this->assertStringContainsString('{"type":', $e->httpResponseBody);
Expand Down

0 comments on commit dedc76e

Please sign in to comment.