Fix testDeleteStorage signature to match the one from the base class
Prevents Strict warning when running autotest-external.sh
This commit is contained in:
parent
3891cd9068
commit
f89e7769dc
|
@ -155,8 +155,9 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \DomainException
|
* @expectedException \DomainException
|
||||||
|
* @dataProvider deleteStorageDataProvider
|
||||||
*/
|
*/
|
||||||
public function testDeleteStorage() {
|
public function testDeleteStorage($backendOptions, $rustyStorageId, $expectedCountAfterDeletion) {
|
||||||
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
|
$backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB');
|
||||||
$authMechanism = $this->backendService->getAuthMechanism('identifier:\Auth\Mechanism');
|
$authMechanism = $this->backendService->getAuthMechanism('identifier:\Auth\Mechanism');
|
||||||
|
|
||||||
|
@ -164,7 +165,7 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest {
|
||||||
$storage->setMountPoint('mountpoint');
|
$storage->setMountPoint('mountpoint');
|
||||||
$storage->setBackend($backend);
|
$storage->setBackend($backend);
|
||||||
$storage->setAuthMechanism($authMechanism);
|
$storage->setAuthMechanism($authMechanism);
|
||||||
$storage->setBackendOptions(['password' => 'testPassword']);
|
$storage->setBackendOptions($backendOptions);
|
||||||
|
|
||||||
$newStorage = $this->globalStoragesService->addStorage($storage);
|
$newStorage = $this->globalStoragesService->addStorage($storage);
|
||||||
$this->assertEquals(1, $newStorage->getId());
|
$this->assertEquals(1, $newStorage->getId());
|
||||||
|
|
Loading…
Reference in New Issue