Completed
Pull Request — master (#125)
by
unknown
07:01
created

TestQJService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInit() 0 4 1
1
<?php
2
3
namespace SilverStripe\QueuedJobs\Tests\QueuedJobsTest;
4
5
use SilverStripe\QueuedJobs\Services\QueuedJobService;
6
use SilverStripe\Dev\TestOnly;
7
8
// stub class to be able to call init from an external context
9
class TestQJService extends QueuedJobService implements TestOnly
10
{
11
    /**
12
     * Not inherited from QueuedJobService unfortunately...
13
     * @var array
14
     */
15
    private static $dependencies = [
0 ignored issues
show
Unused Code introduced by
The property $dependencies is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
16
        'queueHandler' => '%$QueueHandler'
17
    ];
18
19
    public function testInit($descriptor)
20
    {
21
        return $this->initialiseJob($descriptor);
22
    }
23
}
24