summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/service/storagesservicetest.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-12 21:43:29 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-19 10:08:23 +0100
commitc592e24c871f0f6a8d688c5c93e769b1505e4b6d (patch)
tree0b967704610d193c1296ae623ab2b7212e87e2d0 /apps/files_external/tests/service/storagesservicetest.php
parent97dbc79c16ba9d4d6c361d6f397908ef7893954d (diff)
downloadnextcloud-server-c592e24c871f0f6a8d688c5c93e769b1505e4b6d.tar.gz
nextcloud-server-c592e24c871f0f6a8d688c5c93e769b1505e4b6d.zip
Make Application a singleton
The same Application must be used in the settings templates and in routes, so that any registered backends are correctly seen
Diffstat (limited to 'apps/files_external/tests/service/storagesservicetest.php')
-rw-r--r--apps/files_external/tests/service/storagesservicetest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/tests/service/storagesservicetest.php b/apps/files_external/tests/service/storagesservicetest.php
index 07286106c7b..28220c9bc2e 100644
--- a/apps/files_external/tests/service/storagesservicetest.php
+++ b/apps/files_external/tests/service/storagesservicetest.php
@@ -121,7 +121,12 @@ abstract class StoragesServiceTest extends \Test\TestCase {
return $this->backendService;
}
}));
- \OC_Mount_Config::initApp($containerMock);
+
+ \OC_Mount_Config::$app = $this->getMockBuilder('\OCA\Files_External\Appinfo\Application')
+ ->disableOriginalConstructor()
+ ->getMock();
+ \OC_Mount_Config::$app->method('getContainer')
+ ->willReturn($containerMock);
}
public function tearDown() {