#How to mock job queue class and throw exception ?
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
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
MyClass::dispatch(
....
);
how to mock MyClass job ? and create mocking for specifc methods instead the job?
@stuck jungle you can mock the dispatcher maybe? I'm not sure what is happening in your code though, something seems sus here.