Skip to content

Commit

Permalink
[9.x] Add assertUnsupportedMediaType method for assertion Unsupported…
Browse files Browse the repository at this point in the history
… Media Type (#46418)

Co-authored-by: Shamimul Alam <bd.shawon1991@gmail.com>
  • Loading branch information
shamimulalam and shamimulalam committed Mar 10, 2023
1 parent ab7586b commit 46199b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Testing/Concerns/AssertsStatusCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ public function assertConflict()
return $this->assertStatus(409);
}

/**
* Assert that the response has a 415 "Unsupported Media Type" status code.
*
* @return $this
*/
public function assertUnsupportedMediaType()
{
return $this->assertStatus(415);
}

/**
* Assert that the response has a 422 "Unprocessable Entity" status code.
*
Expand Down

0 comments on commit 46199b6

Please sign in to comment.