Skip to content

Commit 3b16343

Browse files
Add unit test
1 parent a20e338 commit 3b16343

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/ResponseTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,18 @@ public function testErrorMethodNotAllowedStatusCodeIs405()
8989
$this->assertSame(405, $response['status']);
9090
}
9191

92-
public function testErrorUnwillingToProcessStatusCodeIs405()
92+
public function testErrorUnwillingToProcessStatusCodeIs431()
9393
{
9494
$response = $this->response->errorUnwillingToProcess();
9595
$this->assertSame(431, $response['status']);
9696
}
9797

98+
public function testErrorUnprocessableStatusCodeIs422()
99+
{
100+
$response = $this->response->errorUnprocessable();
101+
$this->assertSame(422, $response['status']);
102+
}
103+
98104
public function testWithItemReturnDataProperly()
99105
{
100106
$item = ['foo' => 'bar'];

0 commit comments

Comments
 (0)