Posted this answer on StackOverflow, too, but here it is for discussion. 😄 Laravel has queue mocks/fakes that will handle that. Try this:
class TestMyWorker extends TestCase
public function testDispachesAnotherJob()
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.