Skip to content

Commit 12e5404

Browse files
authored
Merge pull request #19931 from nextcloud/external-storage-password-placeholders-fix-tests
fix external storage controller tests
2 parents dc0ee35 + db49ae3 commit 12e5404

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/files_external/tests/Controller/StoragesControllerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ protected function getBackendMock($class = '\OCA\Files_External\Lib\Backend\SMB'
6666
->willReturn($storageClass);
6767
$backend->method('getIdentifier')
6868
->willReturn('identifier:'.$class);
69+
$backend->method('getParameters')
70+
->willReturn([]);
6971
return $backend;
7072
}
7173

@@ -80,6 +82,8 @@ protected function getAuthMechMock($scheme = 'null', $class = '\OCA\Files_Extern
8082
->willReturn($scheme);
8183
$authMech->method('getIdentifier')
8284
->willReturn('identifier:'.$class);
85+
$authMech->method('getParameters')
86+
->willReturn([]);
8387

8488
return $authMech;
8589
}

0 commit comments

Comments
 (0)