From 3b16343a610a428b03c8e14b6ff762a3228ea11f Mon Sep 17 00:00:00 2001 From: Maxime Beaudoin Date: Tue, 7 Jun 2016 12:27:08 +0000 Subject: [PATCH] Add unit test --- tests/ResponseTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index c8283b9..7076ca4 100644 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -89,12 +89,18 @@ public function testErrorMethodNotAllowedStatusCodeIs405() $this->assertSame(405, $response['status']); } - public function testErrorUnwillingToProcessStatusCodeIs405() + public function testErrorUnwillingToProcessStatusCodeIs431() { $response = $this->response->errorUnwillingToProcess(); $this->assertSame(431, $response['status']); } + public function testErrorUnprocessableStatusCodeIs422() + { + $response = $this->response->errorUnprocessable(); + $this->assertSame(422, $response['status']); + } + public function testWithItemReturnDataProperly() { $item = ['foo' => 'bar'];