diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-12 21:43:29 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-19 10:08:23 +0100 |
commit | c592e24c871f0f6a8d688c5c93e769b1505e4b6d (patch) | |
tree | 0b967704610d193c1296ae623ab2b7212e87e2d0 /apps/files_external/tests/service/storagesservicetest.php | |
parent | 97dbc79c16ba9d4d6c361d6f397908ef7893954d (diff) | |
download | nextcloud-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.php | 7 |
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() { |