Completed
Push — master ( 745336...aadd5d )
by Matthew
06:17
created

ResetCommandTest::testResetCommand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Dtc\QueueBundle\Tests\Command;
4
5
use Dtc\QueueBundle\Command\ResetCommand;
6
use PHPUnit\Framework\TestCase;
7
8
class ResetCommandTest extends TestCase
9
{
10
    use CommandTrait;
11
12
    public function testResetCommand()
13
    {
14
        $this->runResetCommand([], 'resetErroneousJobs');
15
        $this->runResetCommand([], 'resetStalledJobs');
16
    }
17
18
    protected function runResetCommand($params, $call, $expectedResult = 0)
19
    {
20
        return $this->runStubCommand(ResetCommand::class, $params, $call, $expectedResult);
21
    }
22
}
23