Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-02-07 13:39:55 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-15 17:13:12 +0300
commitc1152af523d742efb669d6a59aecc65f4763d723 (patch)
treed154f03004c4a2e234ef0daffd4ac6ca7c3ad69a /apps
parent20f4a8c04609e58d81037753bf1d9cd39f4e8c02 (diff)
Move deprecated aliases over to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/tests/TrashbinTest.php4
-rw-r--r--apps/files_versions/tests/VersioningTest.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php
index 1e041498390..e682d0dd51f 100644
--- a/apps/files_trashbin/tests/TrashbinTest.php
+++ b/apps/files_trashbin/tests/TrashbinTest.php
@@ -129,7 +129,7 @@ class TrashbinTest extends \Test\TestCase {
return $config->getSystemValue($key, $default);
}
}));
- $this->overwriteService('AllConfig', $mockConfig);
+ $this->overwriteService(\OC\AllConfig::class, $mockConfig);
$this->trashRoot1 = '/' . self::TEST_TRASHBIN_USER1 . '/files_trashbin';
$this->trashRoot2 = '/' . self::TEST_TRASHBIN_USER2 . '/files_trashbin';
@@ -138,7 +138,7 @@ class TrashbinTest extends \Test\TestCase {
}
protected function tearDown(): void {
- $this->restoreService('AllConfig');
+ $this->restoreService(\OC\AllConfig::class);
// disable trashbin to be able to properly clean up
\OC::$server->getAppManager()->disableApp('files_trashbin');
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index 9bee9e0abc2..e07a1816c30 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -93,7 +93,7 @@ class VersioningTest extends \Test\TestCase {
return $config->getSystemValue($key, $default);
}
}));
- $this->overwriteService('AllConfig', $mockConfig);
+ $this->overwriteService(\OC\AllConfig::class, $mockConfig);
// clear hooks
\OC_Hook::clear();
@@ -115,7 +115,7 @@ class VersioningTest extends \Test\TestCase {
}
protected function tearDown(): void {
- $this->restoreService('AllConfig');
+ $this->restoreService(\OC\AllConfig::class);
if ($this->rootView) {
$this->rootView->deleteAll(self::TEST_VERSIONS_USER . '/files/');
@@ -629,7 +629,7 @@ class VersioningTest extends \Test\TestCase {
$this->assertFalse(\OCA\Files_Versions\Storage::expire('/void/unexist.txt', self::TEST_VERSIONS_USER));
}
-
+
public function testExpireNonexistingUser() {
$this->expectException(\OC\User\NoUserException::class);