summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-13 13:24:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-13 13:24:29 +0200
commit2df006d0b7094ab77691bf89ec7d526449110e9d (patch)
tree28f6981665aeabaa675bbc3edbf85c2aa95ee000
parent3891cd9068596481cf1717e9b1a5bcae1cc0ce09 (diff)
parentf89e7769dca70c4e11213e087dc2fe58519635a6 (diff)
downloadnextcloud-server-2df006d0b7094ab77691bf89ec7d526449110e9d.tar.gz
nextcloud-server-2df006d0b7094ab77691bf89ec7d526449110e9d.zip
Merge pull request #19735 from owncloud/extstorage-signature
Fix testDeleteStorage signature to match the one from the base class
-rw-r--r--apps/files_external/tests/service/userglobalstoragesservicetest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/tests/service/userglobalstoragesservicetest.php b/apps/files_external/tests/service/userglobalstoragesservicetest.php
index 7c2516f0477..1b902b6eee5 100644
--- a/apps/files_external/tests/service/userglobalstoragesservicetest.php
+++ b/apps/files_external/tests/service/userglobalstoragesservicetest.php
@@ -155,8 +155,9 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
/**
* @expectedException \DomainException
+ * @dataProvider deleteStorageDataProvider
*/
- public function testDeleteStorage() {
+ public function testDeleteStorage($backendOptions, $rustyStorageId, $expectedCountAfterDeletion) {
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
$authMechanism = $this->backendService->getAuthMechanism('identifier:\Auth\Mechanism');
@@ -164,7 +165,7 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
$storage->setMountPoint('mountpoint');
$storage->setBackend($backend);
$storage->setAuthMechanism($authMechanism);
- $storage->setBackendOptions(['password' => 'testPassword']);
+ $storage->setBackendOptions($backendOptions);
$newStorage = $this->globalStoragesService->addStorage($storage);
$this->assertEquals(1, $newStorage->getId());