You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loving actions here! And also having a small issues with it:
I have an action dispatching actions on a given queue
<?php
class SomeAction
{
use AsAction;
public static function handle(): void
{
AnotherAction::dispatch($run)->onQueue(config('queue.jobs.others'));
}
}
In my tests when I mock then run SomeAction,
it('should not dispatch AnotherAction, function () {
// ...
SomeAction::shouldRun();
It throws:
Typed property AnotherAction::$jobQueue must not be accessed before initialization
With stack trace :
It is possible to mock a Job and use ->onQueue() and it's just returning?
The text was updated successfully, but these errors were encountered:
Hi there,
Loving actions here! And also having a small issues with it:
I have an action dispatching actions on a given queue
In my tests when I mock then run
SomeAction
,It throws:
With stack trace :
It is possible to mock a Job and use
->onQueue()
and it's just returning?The text was updated successfully, but these errors were encountered: