public function testExecute()
{
$application = $this->getApplication();
$application->add(new ListCommand());
$createCommand = $this->getApplication()->find('dev:module:create');
$updateCommand = $this->getApplication()->find('dev:module:update');
$updateCommand->setTestMode(true);
$root = getcwd();
$this->_deleteOldModule($root);
$commandTester = new CommandTester($createCommand);
$commandTester->execute(array('command' => $createCommand->getName(), '--add-all' => true, '--modman' => true, '--description' => 'Unit Test Description', '--author-name' => 'Unit Test', '--author-email' => '[email protected]', 'vendorNamespace' => 'N98Magerun', 'moduleName' => 'UnitTest'));
$commandTester = new CommandTester($updateCommand);
$moduleBaseFolder = $root . '/N98Magerun_UnitTest/src/app/code/local/N98Magerun/UnitTest/';
$dialog = $updateCommand->getHelper('dialog');
$dialog->setInputStream($this->getInputStream("2.0.0\n"));
$this->_setVersionOptionTest($commandTester, $updateCommand, $moduleBaseFolder);
$this->_addResourceModelOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder);
$this->_addRoutersOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder);
$this->_addEventsOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder);
$this->_addLayoutUpdatesOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder);
$this->_addTranslateOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder);
$this->_addDefaultOptionTest($dialog, $commandTester, $updateCommand, $moduleBaseFolder);
$this->_deleteOldModule($root);
}