Passed
Push — master ( 5c4c7a...89ffe1 )
by Stephen
17:00
created

QueueFaker::eventFaker()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
1
<?php
2
3
namespace Sfneal\Testing\Utils\Traits;
4
5
use Illuminate\Support\Facades\Queue;
6
7
trait QueueFaker
8
{
9
    /**
10
     * Setup Queue faking.
11
     *
12
     * @return void
13
     */
14
    protected function eventFaker(): void
15
    {
16
        // Enable queue faking
17
        Queue::fake();
18
19
        // Assert that no jobs were pushed...
20
        Queue::assertNothingPushed();
21
    }
22
}
23