#How to mock job queue class and throw exception ?

3 messages · Page 1 of 1 (latest)

stuck jungle
#

I need to mock specific queue job class and throw specific exception so that the job queue will fire failed method with specific exception so I can assert data

stuck jungle
#
MyClass::dispatch(
                ....
            );

how to mock MyClass job ? and create mocking for specifc methods instead the job?

cedar summit
#

@stuck jungle you can mock the dispatcher maybe? I'm not sure what is happening in your code though, something seems sus here.