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
How do I go about writing tests around this library? Is there a mock I can use for my PHPUnit tests? Is there a particular tool I should use? (cypress vs dusk vs phpunit)? If I am simulating a call to my upload endpoint how do I test what happens on first chunk as opposed to last chunk as opposed to a chunk that fails halfway through? I have had a look through the tests in this repo but it doesn't really tell me much. Any leads on how to test my app where it touches this library?
The text was updated successfully, but these errors were encountered:
for the endpoint resolving there is no difference between first / last chunk. As it uses dependency injection you are able to mock FileReceiver in your APP. Depends on your code
About testing - depends what type of tests you want to do. Here I've written a codeceptjs tests that will upload the file in running docker compose and tests if the file exists (by an API).
How do I go about writing tests around this library? Is there a mock I can use for my PHPUnit tests? Is there a particular tool I should use? (cypress vs dusk vs phpunit)? If I am simulating a call to my upload endpoint how do I test what happens on first chunk as opposed to last chunk as opposed to a chunk that fails halfway through? I have had a look through the tests in this repo but it doesn't really tell me much. Any leads on how to test my app where it touches this library?
The text was updated successfully, but these errors were encountered: