mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[Unit] Add customizable message to assertResponseNotFound in JsonApiTestCase
This commit is contained in:
parent
7c2d8a8e0c
commit
7d8d85a4ba
1 changed files with 2 additions and 2 deletions
|
|
@ -253,9 +253,9 @@ abstract class JsonApiTestCase extends BaseJsonApiTestCase
|
|||
}
|
||||
|
||||
/** @throws \Exception */
|
||||
protected function assertResponseNotFound(): void
|
||||
protected function assertResponseNotFound(string $message = 'Not Found'): void
|
||||
{
|
||||
$this->assertResponseErrorMessage('Not Found', Response::HTTP_NOT_FOUND);
|
||||
$this->assertResponseErrorMessage($message, Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
/** @throws \Exception */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue