Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function testExecute(bool $restored, int $expected): void |
||
49 | { |
||
50 | $requeueService = $this->getMockQueueRequeueService(['restoreQueues']); |
||
51 | $requeueService->expects($this->once()) |
||
52 | ->method('restoreQueues') |
||
53 | ->willReturn($restored); |
||
54 | |||
55 | $command = new QueueRequeueCommand($requeueService, 1); |
||
56 | |||
57 | $this->assertEquals( |
||
58 | $expected, |
||
59 | Reflection::callProtectedMethod($command, 'execute', $this->getMockInput(), $this->getMockOutput()) |
||
60 | ); |
||
61 | } |
||
62 | } |
||
63 |