Files
n98-magerun2/dev/tests/N98/Magento/Command/Cache/CleanCommandTest.php
T
Tom Klingenberg bdebdb1753 [FIX] WS fixes
- no newline at the end of file
2015-11-11 01:18:16 +01:00

42 lines
1.4 KiB
PHP

<?php
namespace N98\Magento\Command\Cache;
use Symfony\Component\Console\Tester\CommandTester;
use N98\Magento\Command\PHPUnit\TestCase;
class CleanCommandTest extends TestCase
{
public function testExecute()
{
$this->markTestSkipped('Cannot explain why test does not work on travis ci server.');
$application = $this->getApplication();
$application->add(new CleanCommand());
$command = $this->getApplication()->find('cache:clean');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName()));
$this->assertContains('config cache cleaned', $commandTester->getDisplay());
}
public function testItCanCleanMultipleCaches()
{
$this->markTestSkipped('Cannot explain why test does not work on travis ci server.');
$application = $this->getApplication();
$application->add(new CleanCommand());
$command = $this->getApplication()->find('cache:clean');
$commandTester = new CommandTester($command);
$commandTester->execute(array(
'command' => $command->getName(),
'type' => array('config', 'layout')
));
$display = $commandTester->getDisplay();
$this->assertContains('config cache cleaned', $display);
$this->assertContains('layout cache cleaned', $display);
}
}