Courses

Advanced Laravel Testing

How to Test Job Classes

Previous: Testing Eloquent Observers/Attributes
avatar

Hi sri, Is there any github repo of this course as well?? I searched but did't find.

avatar

Sorry, I didn't save any repositories for this course because they were all separate small experiments, not some one project to be saved in one repository.

avatar
You can use Markdown
avatar

What if we have a binded services class in handle method? Like the example in Laravel docs In the example we have AudioProcessor $processor in handle method, how can we test this job?

avatar

I would probably use Mocking in such case. But it depends on the full scenario and all dependencies, can't answer in a short comment.

avatar
You can use Markdown
avatar
You can use Markdown