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:
authorJoas Schilling <coding@schilljs.com>2020-03-18 12:43:54 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-18 20:59:49 +0300
commitdc7913efcdefbf1791a5a3f2815b818b9a21c0ee (patch)
treeeeae6f1d66b860d99de08a25fcfc5c9d8faef733 /apps/settings/tests
parent570f3c77989120d92efbbd7a8bc5ad39288d7222 (diff)
Fix recursive calls in logging via server methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/tests')
-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);
}
}