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
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/tests/AppInfo/ApplicationTest.php')
-rw-r--r--apps/settings/tests/AppInfo/ApplicationTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/settings/tests/AppInfo/ApplicationTest.php b/apps/settings/tests/AppInfo/ApplicationTest.php
index abe590622d2..f7d71635a67 100644
--- a/apps/settings/tests/AppInfo/ApplicationTest.php
+++ b/apps/settings/tests/AppInfo/ApplicationTest.php
@@ -26,6 +26,7 @@
namespace OCA\Settings\Tests\AppInfo;
+use OC\User\Session;
use OCA\Settings\AppInfo\Application;
use OCA\Settings\Controller\AdminSettingsController;
use OCA\Settings\Controller\AppSettingsController;
@@ -113,8 +114,8 @@ class ApplicationTest extends TestCase {
->method('getUser')
->willReturn($user);
- $this->overwriteService('UserSession', $session);
+ $this->overwriteService(Session::class, $session);
$this->assertTrue($this->container->query($service) instanceof $expected);
- $this->restoreService('UserSession');
+ $this->restoreService(Session::class);
}
}