Merge pull request #19931 from nextcloud/external-storage-password-placeholders-fix-tests
fix external storage controller tests
This commit is contained in:
commit
12e54047a1
|
@ -66,6 +66,8 @@ abstract class StoragesControllerTest extends \Test\TestCase {
|
||||||
->willReturn($storageClass);
|
->willReturn($storageClass);
|
||||||
$backend->method('getIdentifier')
|
$backend->method('getIdentifier')
|
||||||
->willReturn('identifier:'.$class);
|
->willReturn('identifier:'.$class);
|
||||||
|
$backend->method('getParameters')
|
||||||
|
->willReturn([]);
|
||||||
return $backend;
|
return $backend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +82,8 @@ abstract class StoragesControllerTest extends \Test\TestCase {
|
||||||
->willReturn($scheme);
|
->willReturn($scheme);
|
||||||
$authMech->method('getIdentifier')
|
$authMech->method('getIdentifier')
|
||||||
->willReturn('identifier:'.$class);
|
->willReturn('identifier:'.$class);
|
||||||
|
$authMech->method('getParameters')
|
||||||
|
->willReturn([]);
|
||||||
|
|
||||||
return $authMech;
|
return $authMech;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue