aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-02 17:45:03 +0200
committerVincent Petry <vincent@nextcloud.com>2021-07-27 12:19:24 +0200
commitcff8ae7ded95ca035c7a6ec9fe5c4212273e2b6c (patch)
treebcfb6086210a25de3a5ab7a72846a2734bc8f58a /apps/files_sharing/tests
parent46b8cf4f64a8a2d9320ded762eeb0a4b9347181d (diff)
downloadnextcloud-server-cff8ae7ded95ca035c7a6ec9fe5c4212273e2b6c.tar.gz
nextcloud-server-cff8ae7ded95ca035c7a6ec9fe5c4212273e2b6c.zip
Add logging to external shares manager
Instead of just returning false, also log the exception to make debugging database issues easier. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/External/ManagerTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/External/ManagerTest.php b/apps/files_sharing/tests/External/ManagerTest.php
index 60380aa0619..1b8b3e1cf4b 100644
--- a/apps/files_sharing/tests/External/ManagerTest.php
+++ b/apps/files_sharing/tests/External/ManagerTest.php
@@ -44,6 +44,7 @@ use OCP\Http\Client\IResponse;
use OCP\IGroup;
use OCP\IGroupManager;
use OCP\IURLGenerator;
+use OCP\ILogger;
use OCP\IUserManager;
use OCP\Share\IShare;
use Test\Traits\UserTrait;
@@ -128,6 +129,7 @@ class ManagerTest extends TestCase {
$this->userManager,
$this->uid,
$this->eventDispatcher,
+ $this->createMock(ILogger::class),
]
)->setMethods(['tryOCMEndPoint'])->getMock();