diff options
author | Robin Appelman <robin@icewind.nl> | 2021-03-26 17:07:39 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-06-16 14:55:19 +0300 |
commit | 1052feabede4b9054047f60aaa6fe4e04e89c434 (patch) | |
tree | 7f87fd18601f2f0648f85c5f066dcc0647c05910 /apps/files_external/tests | |
parent | 7917f4cf763a3f35f81f500b5f5b5135cd136518 (diff) |
remove depricated methods from MountConfig
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/Service/StoragesServiceTest.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files_external/tests/Service/StoragesServiceTest.php b/apps/files_external/tests/Service/StoragesServiceTest.php index 78510c3e383..3829a9ea0ce 100644 --- a/apps/files_external/tests/Service/StoragesServiceTest.php +++ b/apps/files_external/tests/Service/StoragesServiceTest.php @@ -154,6 +154,7 @@ abstract class StoragesServiceTest extends \Test\TestCase { }); $this->backendService->method('getBackends') ->willReturn($backends); + $this->overwriteService(BackendService::class, $this->backendService); \OCP\Util::connectHook( Filesystem::CLASSNAME, @@ -171,12 +172,6 @@ abstract class StoragesServiceTest extends \Test\TestCase { return $this->backendService; } }); - - \OCA\Files_External\MountConfig::$app = $this->getMockBuilder('\OCA\Files_External\Appinfo\Application') - ->disableOriginalConstructor() - ->getMock(); - \OCA\Files_External\MountConfig::$app->method('getContainer') - ->willReturn($containerMock); } protected function tearDown(): void { |