From 7b674dd2cac86b120195ef1538ca9933c6b2f1e5 Mon Sep 17 00:00:00 2001 From: Littlesqx Date: Fri, 30 Aug 2019 09:28:18 +0800 Subject: [PATCH] Fix mismatch --- tests/Exception/HttpClientExceptionTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } }