From e4977841b4fbdedb0d854ff37a335d8ec6085b04 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 23 Apr 2015 17:09:43 +0200 Subject: Add unit tests for the commands --- core/command/encryption/setdefaultmodule.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/command') diff --git a/core/command/encryption/setdefaultmodule.php b/core/command/encryption/setdefaultmodule.php index f33762ef49a..a605b470d43 100644 --- a/core/command/encryption/setdefaultmodule.php +++ b/core/command/encryption/setdefaultmodule.php @@ -22,20 +22,20 @@ namespace OC\Core\Command\Encryption; -use OC\Encryption\Manager; +use OCP\Encryption\IManager; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class SetDefaultModule extends Command { - /** @var Manager */ + /** @var IManager */ protected $encryptionManager; /** - * @param Manager $encryptionManager + * @param IManager $encryptionManager */ - public function __construct(Manager $encryptionManager) { + public function __construct(IManager $encryptionManager) { parent::__construct(); $this->encryptionManager = $encryptionManager; } @@ -60,9 +60,9 @@ class SetDefaultModule extends Command { if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) { $output->writeln('"' . $moduleId . '"" is already the default module'); } else if ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) { - $output->writeln('Set default module to "' . $moduleId . '"'); + $output->writeln('Set default module to "' . $moduleId . '"'); } else { - $output->writeln('The specified module "' . $moduleId . '" does not exist'); + $output->writeln('The specified module "' . $moduleId . '" does not exist'); } } } -- cgit v1.2.3