diff options
Diffstat (limited to 'apps/settings/tests/AppInfo/ApplicationTest.php')
-rw-r--r-- | apps/settings/tests/AppInfo/ApplicationTest.php | 5 |
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); } } |