Closed HugoHeneault closed 1 month ago
I just did this, you have to actually put the job decorator in your test like so:
I just did this, you have to actually put the job decorator in your test like so:
I have the same issue. How do you dispatch the bus chain?
Closing due to inactivity. If you feel your issue is still relevant please open a new one with a link to a repository containing a minimal reproducible example.
Hi there! Using actions for awhile, thanks for this great plugin 🙌
We're chaining actions but assertChained isn't working :
ProcessActivityJob
is a normalShouldQueue
implementation.UpdateUserParticipationsOnChallenges
usesAsAction
CreateMyActivity
chains this two jobs.When
UpdateUserParticipationsOnChallenges
is aShouldQueue
implementationassertChained
works. If we're using it only as an action, it fails.Here's some code:
Our test:
Here're BusFake implem:
I think the problem is BusFake uses
return get_class(unserialize($job));
to get the chainName I don't see how we could fix it? Of course we can use a normalShouldQueue
implem but it makes us create another class, we'de prefer not to.Thanks for your help!