Skip to content

Commit 46199b6

Browse files
authored
[9.x] Add assertUnsupportedMediaType method for assertion Unsupported Media Type (#46418)
Co-authored-by: Shamimul Alam <[email protected]>
1 parent ab7586b commit 46199b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Illuminate/Testing/Concerns/AssertsStatusCodes.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@ public function assertConflict()
143143
return $this->assertStatus(409);
144144
}
145145

146+
/**
147+
* Assert that the response has a 415 "Unsupported Media Type" status code.
148+
*
149+
* @return $this
150+
*/
151+
public function assertUnsupportedMediaType()
152+
{
153+
return $this->assertStatus(415);
154+
}
155+
146156
/**
147157
* Assert that the response has a 422 "Unprocessable Entity" status code.
148158
*

0 commit comments

Comments
 (0)