diff options
Diffstat (limited to 'vendor/illuminate/support/Facades/Queue.php')
| -rwxr-xr-x | vendor/illuminate/support/Facades/Queue.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/illuminate/support/Facades/Queue.php b/vendor/illuminate/support/Facades/Queue.php index 1f57ba0fec..521d2eb214 100755 --- a/vendor/illuminate/support/Facades/Queue.php +++ b/vendor/illuminate/support/Facades/Queue.php @@ -24,11 +24,13 @@ class Queue extends Facade /** * Replace the bound instance with a fake. * - * @return void + * @return \Illuminate\Support\Testing\Fakes\QueueFake */ public static function fake() { - static::swap(new QueueFake(static::getFacadeApplication())); + static::swap($fake = new QueueFake(static::getFacadeApplication())); + + return $fake; } /** |
