How are you testing it, you should run them through Redis or Database for testing.
You need to fake it
Queue::fake();
Queue::assertPushed(YourAction::class);
Hi team, I am sending a JOB to run, when Redis appear it makes the call but in the normal Database not in the one I set up on my phpunit.xml
<env name="DB_DATABASE" value="testing"/> so HOW TO make Redis check in that database?
hope it makes sense, that when he jumps from testing DB to normalDB there are no users thus all the users are created in the testing DB...
Thanks in advance
How are you testing it, you should run them through Redis or Database for testing.
You need to fake it
Queue::fake();
Queue::assertPushed(YourAction::class);
Please or to participate in this conversation.