The problem is - when we use queue's fake method and artisan's call method we gonna end up with this kind of error:
TypeError: Argument 1 passed to IlluminateQueueWorker::__construct() must be an instance of IlluminateQueueQueueManager, instance of IlluminateSupportTestingFakesQueueFake given
Which I believe is issue with Laravel itself. If I'm wrong, please correct me. I found simple workaround for this - I've created seperate unit test for this particular feature, which doesn't include fake method, but I think it's worth to mention this problem there.
Simply use this example code:
```php
public function setUp()
{
parent::setUp();
Queue::fake();
}
public function testExample()
{
Artisan::call('schedule:run'); // Can be literally any command
}
Most helpful comment
Fixed in https://github.com/laravel/framework/pull/18831