Passed
Push — master ( 18e7ec...2463a0 )
by Stephen
25:06 queued 20:24
created

QueueFaker   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A queueFaker() 0 7 1
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 queueFaker(): void
15
    {
16
        // Enable queue faking
17
        Queue::fake();
18
19
        // Assert that no jobs were pushed...
20
        Queue::assertNothingPushed();
21
    }
22
}
23