mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +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 */
|
/** @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 */
|
/** @throws \Exception */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue