summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/command/listcommandtest.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-16 15:22:23 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-16 15:27:55 +0100
commit176fb191b7ec1c742b70295ca2a315d8cc1f1ea0 (patch)
treee050939c7cb71c273b56ff7b13f0a4ae621ff5cd /apps/files_external/tests/command/listcommandtest.php
parent1cb3583a9a28c13d07fa83b569bfa78df9cbf79d (diff)
downloadnextcloud-server-176fb191b7ec1c742b70295ca2a315d8cc1f1ea0.tar.gz
nextcloud-server-176fb191b7ec1c742b70295ca2a315d8cc1f1ea0.zip
remove login credentails and user provided backends
Diffstat (limited to 'apps/files_external/tests/command/listcommandtest.php')
-rw-r--r--apps/files_external/tests/command/listcommandtest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_external/tests/command/listcommandtest.php b/apps/files_external/tests/command/listcommandtest.php
index 338ddb7593e..3098906bcc6 100644
--- a/apps/files_external/tests/command/listcommandtest.php
+++ b/apps/files_external/tests/command/listcommandtest.php
@@ -24,7 +24,7 @@ namespace OCA\Files_External\Tests\Command;
use OCA\Files_External\Command\ListCommand;
use OCA\Files_External\Lib\Auth\NullMechanism;
use OCA\Files_External\Lib\Auth\Password\Password;
-use OCA\Files_External\Lib\Auth\Password\UserProvided;
+use OCA\Files_External\Lib\Auth\Password\SessionCredentials;
use OCA\Files_External\Lib\Backend\Local;
use OCA\Files_external\Lib\StorageConfig;
use Symfony\Component\Console\Output\BufferedOutput;
@@ -48,13 +48,14 @@ class ListCommandTest extends CommandTest {
public function testListAuthIdentifier() {
$l10n = $this->getMock('\OC_L10N', null, [], '', false);
- $credentialsManager = $this->getMock('\OCP\Security\ICredentialsManager');
+ $session = $this->getMock('\OCP\ISession');
+ $crypto = $this->getMock('\OCP\Security\ICrypto');
$instance = $this->getInstance();
$mount1 = new StorageConfig();
$mount1->setAuthMechanism(new Password($l10n));
$mount1->setBackend(new Local($l10n, new NullMechanism($l10n)));
$mount2 = new StorageConfig();
- $mount2->setAuthMechanism(new UserProvided($l10n, $credentialsManager));
+ $mount2->setAuthMechanism(new SessionCredentials($l10n, $session, $crypto));
$mount2->setBackend(new Local($l10n, new NullMechanism($l10n)));
$input = $this->getInput($instance, [], [
'output' => 'json'