Completed
Pull Request — master (#125)
by
unknown
26:03
created

TestQJService::testInit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace SilverStripe\QueuedJobs\Tests;
4
5
use SilverStripe\QueuedJobs\Services\QueuedJobService;
6
7
// stub class to be able to call init from an external context
8
class TestQJService extends QueuedJobService
9
{
10
    /**
11
     * Not inherited from QueuedJobService unfortunately...
12
     * @var array
13
     */
14
    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...
15
        'queueHandler' => '%$QueueHandler'
16
    ];
17
18
    public function testInit($descriptor)
19
    {
20
        return $this->initialiseJob($descriptor);
21
    }
22
}
23