diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-18 10:43:54 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-18 18:59:49 +0100 |
commit | dc7913efcdefbf1791a5a3f2815b818b9a21c0ee (patch) | |
tree | eeae6f1d66b860d99de08a25fcfc5c9d8faef733 /apps/settings/tests/AppInfo | |
parent | 570f3c77989120d92efbbd7a8bc5ad39288d7222 (diff) | |
download | nextcloud-server-dc7913efcdefbf1791a5a3f2815b818b9a21c0ee.tar.gz nextcloud-server-dc7913efcdefbf1791a5a3f2815b818b9a21c0ee.zip |
Fix recursive calls in logging via server methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/tests/AppInfo')
-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); } } |