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 using streamDownload() and toBrowser() to download a CSV. I am trying to write a test that verifies a CSV was downloaded and checks the file contents.
However, toBrowser() appears to call exit() which aborts the rest of the request.
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
-
I am using streamDownload() and toBrowser() to download a CSV. I am trying to write a test that verifies a CSV was downloaded and checks the file contents.
However, toBrowser() appears to call exit() which aborts the rest of the request.
simple-excel/src/SimpleExcelWriter.php
Line 230 in 9e7f872
Maybe this is outside of the scope of this package, but is there a way to test a download worked?
Beta Was this translation helpful? Give feedback.
All reactions