FvsJson's avatar

Laravel Mocking is making a mockery of me -.-

I have a job that logs auth users page visit once per day and at the end there is a exception check. The problem comes in to get th unit test to prove the exception check should work.... and its not... -.-

job class

unit test

error message

Mockery\Exception\InvalidCountException: Method error(<Any Arguments>) from Mockery_1_Illuminate_Log_LogManager should be called at least 1 times but called 0 times

0 likes
1 reply

Please or to participate in this conversation.