10 use Symfony\Component\Console\Tester\CommandTester;
29 $this->cacheManagerMock->expects($this->once())
30 ->method(
'getAvailableTypes')
31 ->willReturn([
'A',
'B',
'C']);
32 $this->cacheManagerMock->expects($this->once())
33 ->method(
'setEnabled')
34 ->with($enable,
false)
37 $commandTester =
new CommandTester($this->command);
38 $commandTester->execute($param);
40 $this->assertEquals(
$output, $commandTester->getDisplay());
getExpectedExecutionOutput(array $changes)
testExecute($param, $enable, $result, $output)
getExpectedChangeOutput(array $changes, $enabled)