Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebeaudoin committed Jun 7, 2016
1 parent a20e338 commit 3b16343
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 3b16343

Please sign in to comment.