diff options
Diffstat (limited to 'apps/files_external/tests/Service/UserStoragesServiceTest.php')
-rw-r--r-- | apps/files_external/tests/Service/UserStoragesServiceTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/tests/Service/UserStoragesServiceTest.php b/apps/files_external/tests/Service/UserStoragesServiceTest.php index ce0b3ab65b1..7b9d16211e0 100644 --- a/apps/files_external/tests/Service/UserStoragesServiceTest.php +++ b/apps/files_external/tests/Service/UserStoragesServiceTest.php @@ -50,7 +50,7 @@ class UserStoragesServiceTest extends StoragesServiceTest { */ protected $globalStoragesService; - public function setUp(): void { + protected function setUp(): void { parent::setUp(); $this->globalStoragesService = new GlobalStoragesService($this->backendService, $this->dbConfig, $this->mountCache); @@ -189,10 +189,10 @@ class UserStoragesServiceTest extends StoragesServiceTest { ); } - /** - * @expectedException \OCA\Files_External\NotFoundException - */ + public function testGetAdminStorage() { + $this->expectException(\OCA\Files_External\NotFoundException::class); + $backend = $this->backendService->getBackend('identifier:\OCA\Files_External\Lib\Backend\SMB'); $authMechanism = $this->backendService->getAuthMechanism('identifier:\Auth\Mechanism'); |