diff --git a/tests/Exception/HttpClientExceptionTest.php b/tests/Exception/HttpClientExceptionTest.php index c1504f9..c194df9 100644 --- a/tests/Exception/HttpClientExceptionTest.php +++ b/tests/Exception/HttpClientExceptionTest.php @@ -56,8 +56,8 @@ class HttpClientExceptionTest extends MailgunTestCase public function testForbiddenRequestGetMessage() { - $response = new Response(400, ['Content-Type' => 'text/html'], 'Forbidden'); - $exception = HttpClientException::badRequest($response); + $response = new Response(403, ['Content-Type' => 'text/html'], 'Forbidden'); + $exception = HttpClientException::forbidden($response); $this->assertStringEndsWith('Forbidden', $exception->getMessage()); } }