From dc7913efcdefbf1791a5a3f2815b818b9a21c0ee Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 18 Mar 2020 10:43:54 +0100 Subject: Fix recursive calls in logging via server methods Signed-off-by: Joas Schilling --- apps/settings/tests/AppInfo/ApplicationTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/settings/tests/AppInfo') 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); } } -- cgit v1.2.3