Skip to content

Commit

Permalink
feat: add Queue facade stub
Browse files Browse the repository at this point in the history
  • Loading branch information
canvural committed Jan 22, 2021
1 parent 8bde189 commit d0b0909
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stubs/Facades.stub
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ class Redis {}
* @mixin \Illuminate\Database\ConnectionInterface
*/
class DB extends Facade {}

/**
* @mixin \Illuminate\Queue\QueueManager
* @mixin \Illuminate\Queue\Queue
*/
class Queue extends Facade {}
8 changes: 8 additions & 0 deletions tests/Features/Methods/Facades.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Queue;
use Illuminate\Support\Facades\Redis;

class Facades
Expand Down Expand Up @@ -60,4 +61,11 @@ public function testDBAfterCommit(): void
DB::afterCommit(function () {
});
}

public function testQueueCreatePayloadUsing(): void
{
Queue::createPayloadUsing(function () {

});
}
}

0 comments on commit d0b0909

Please sign in to comment.