diff --git a/tests/Fixtures/Saloon/extract-text-non-existing.json b/tests/Fixtures/Saloon/extract-text-non-existing.json index de00beb..4d08a8d 100644 --- a/tests/Fixtures/Saloon/extract-text-non-existing.json +++ b/tests/Fixtures/Saloon/extract-text-non-existing.json @@ -3,5 +3,5 @@ "headers": { "content-type": "application\/json" }, - "data": "{\"detail\":\"File not found at given url.\"}" + "data": "{\"detail\":\"Unsupported mime type 'text\/html'. Expecting application\/pdf.\"}" } \ No newline at end of file diff --git a/tests/ParseTest.php b/tests/ParseTest.php index 4a715c9..0da6aee 100644 --- a/tests/ParseTest.php +++ b/tests/ParseTest.php @@ -172,7 +172,7 @@ $mockClient->assertSentCount(1); -})->throws(UnprocessableEntityException::class, 'File not found at given url.'); +})->throws(UnprocessableEntityException::class, 'Unprocessable Entity (422) Response: {"detail":"Unsupported mime type \'text/html\'. Expecting application/pdf."}'); test('handle pdfact not available', function () { $mockClient = MockClient::global([