Created
May 19, 2020 05:05
-
-
Save jarektkaczyk/3b18e2445f45d604bddde8cd405e1eab to your computer and use it in GitHub Desktop.
Dispatchable incompatible with queue assertions?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Laravel 7.* | |
// Testing jobs: | |
Queue::later(now()->addMinute(), new SomeJob); | |
Queue::assertPushed(SomeJob::class, fn () => ...); // works | |
SomeJob::dispatch()->delay(now()->addMinute()); | |
Queue::assertPushed(SomeJob::class, fn () => ...); // Doesn't work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment