diff options
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); |