You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing tests for a downloaded PDF. The simple assertion methods are always failing as they only check PDFs that were saved, not any that were generated.
How to reproduce the bug
Create a route that returns a PDF as a response
In a test, request that route
Use Pdf::assertSee() to check for the presence of a string in the generated PDF
This discussion was converted from issue #198 on December 09, 2024 13:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What happened?
I am writing tests for a downloaded PDF. The simple assertion methods are always failing as they only check PDFs that were saved, not any that were generated.
How to reproduce the bug
Pdf::assertSee()
to check for the presence of a string in the generated PDFPackage Version
1.5.2
PHP Version
8.3.14
Laravel Version
11.33.2
Which operating systems does with happen with?
No response
Notes
No response
Beta Was this translation helpful? Give feedback.
All reactions