Hello everyone.
I have been writing some tests for my application but can't seem to figure out a way of testing try catch blocks, even after doing some research.
In my LoginUserController.php, suppose my code throws an error, which I'm catching using try/catch block, how do I test for this?
In my AuthenticationTest.php, how do I write the tests for test_exceptions_are_caught_during_login method?