public function testExecute()
{
$application = $this->getApplication();
if ($application->getMagentoMajorVersion() == Application::MAGENTO_MAJOR_VERSION_1) {
$application->add(new DisableCommand());
$command = $this->getApplication()->find('cache:disable');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName()));
$this->assertRegExp('/Caches disabled/', $commandTester->getDisplay());
}
}