diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-02-07 11:39:55 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-15 15:13:12 +0100 |
commit | c1152af523d742efb669d6a59aecc65f4763d723 (patch) | |
tree | d154f03004c4a2e234ef0daffd4ac6ca7c3ad69a /apps/files_versions | |
parent | 20f4a8c04609e58d81037753bf1d9cd39f4e8c02 (diff) | |
download | nextcloud-server-c1152af523d742efb669d6a59aecc65f4763d723.tar.gz nextcloud-server-c1152af523d742efb669d6a59aecc65f4763d723.zip |
Move deprecated aliases over to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/tests/VersioningTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
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); |