summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/service
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-25 08:43:01 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-25 08:43:01 +0200
commit424759908d044866c8d686e9f321df1d1e609fa9 (patch)
treede1b72e0806ad660491e95e9aad279638853b6a0 /apps/files_external/tests/service
parent09808a9007511c2d06da31daed7a9e2061646401 (diff)
parent643e3a5b6db19b9ba0210fef89f6ee163bc0edef (diff)
downloadnextcloud-server-424759908d044866c8d686e9f321df1d1e609fa9.tar.gz
nextcloud-server-424759908d044866c8d686e9f321df1d1e609fa9.zip
Merge pull request #18445 from owncloud/ext-only-setuservars-string
setUserVars() should only attempt substitution with strings
Diffstat (limited to 'apps/files_external/tests/service')
-rw-r--r--apps/files_external/tests/service/globalstoragesservicetest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_external/tests/service/globalstoragesservicetest.php b/apps/files_external/tests/service/globalstoragesservicetest.php
index 05585d2c065..2bc480ca312 100644
--- a/apps/files_external/tests/service/globalstoragesservicetest.php
+++ b/apps/files_external/tests/service/globalstoragesservicetest.php
@@ -789,6 +789,13 @@ class GlobalStoragesServiceTest extends StoragesServiceTest {
file_put_contents($configFile, json_encode($json));
+ $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB')
+ ->expects($this->exactly(4))
+ ->method('validateStorageDefinition');
+ $this->backendService->getAuthMechanism('identifier:\Auth\Mechanism')
+ ->expects($this->exactly(4))
+ ->method('validateStorageDefinition');
+
$allStorages = $this->service->getAllStorages();
$this->assertCount(4, $allStorages);