Skip to main content

How to Test Job Classes

Premium
2:41

The Full Lesson is Only for Premium Members

Want to access all of our courses? (30 h 01 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

MI
Muhammad ishaq ✓ Link copied!

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

PK
Povilas Korop ✓ Link copied!

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.

MD
Mojtaba Darvishi ✓ Link copied!

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?

PK
Povilas Korop ✓ Link copied!

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.

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.