GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 94f118...938a24 )
by Robbie
02:40
created

QueuedJobsTestState   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A tearDown() 0 4 1
A setUpOnce() 0 4 1
A tearDownOnce() 0 4 1
1
<?php
2
3
namespace Symbiote\QueuedJobs\Dev\State;
4
5
use SilverStripe\Core\Config\Config;
6
use SilverStripe\Dev\SapphireTest;
7
use SilverStripe\Dev\State\TestState;
8
use Symbiote\QueuedJobs\Services\QueuedJobService;
9
10
class QueuedJobsTestState implements TestState
11
{
12
    /**
13
     * Never run the shutdown handler during unit tests
14
     *
15
     * @param SapphireTest $test
16
     */
17
    public function setUp(SapphireTest $test)
18
    {
19
20
        Config::modify()->set(QueuedJobService::class, 'use_shutdown_function', false);
21
    }
22
23
    public function tearDown(SapphireTest $test)
24
    {
25
        // noop
26
    }
27
28
    public function setUpOnce($class)
29
    {
30
        // noop
31
    }
32
33
    public function tearDownOnce($class)
34
    {
35
        // noop
36
    }
37
}
38