[Unit] Add customizable message to assertResponseNotFound in JsonApiTestCase

This commit is contained in:
Rafikooo 2024-09-23 12:58:27 +02:00
parent 7c2d8a8e0c
commit 7d8d85a4ba
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B

View file

@ -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 */