aboutsummaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-23 17:09:43 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-27 11:03:51 +0200
commite4977841b4fbdedb0d854ff37a335d8ec6085b04 (patch)
treea1c642941b81c094a6eaaa20264c0f862e1e1b32 /core/command
parent5855d23ff9ab26f4fe22dd692595f908e60c9876 (diff)
downloadnextcloud-server-e4977841b4fbdedb0d854ff37a335d8ec6085b04.tar.gz
nextcloud-server-e4977841b4fbdedb0d854ff37a335d8ec6085b04.zip
Add unit tests for the commands
Diffstat (limited to 'core/command')
-rw-r--r--core/command/encryption/setdefaultmodule.php12
1 files changed, 6 insertions, 6 deletions
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('<info>Set default module to "' . $moduleId . '"</info>');
} else {
- $output->writeln('The specified module "' . $moduleId . '" does not exist');
+ $output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>');
}
}
}