diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-03-22 21:21:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 21:21:53 +0100 |
commit | 1eb084cfd37875adfe37301dcef7801634f7e28a (patch) | |
tree | 21855a42c198da8206df0a766d1983a3e12344de /apps/federatedfilesharing/tests | |
parent | 268acd301dafa90917e30cea8370b9cc27b7a2c6 (diff) | |
parent | 2dac72ddea918c01495ba78e61cb1daf83daf33a (diff) | |
download | nextcloud-server-1eb084cfd37875adfe37301dcef7801634f7e28a.tar.gz nextcloud-server-1eb084cfd37875adfe37301dcef7801634f7e28a.zip |
Merge pull request #25498 from Worteks/feat-federatedfilesharing-logging
feat(federatedfilesharing): log errors, as suggested by @maxbes
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r-- | apps/federatedfilesharing/tests/NotificationsTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/tests/NotificationsTest.php b/apps/federatedfilesharing/tests/NotificationsTest.php index 4251f13f222..a1c06f09769 100644 --- a/apps/federatedfilesharing/tests/NotificationsTest.php +++ b/apps/federatedfilesharing/tests/NotificationsTest.php @@ -32,6 +32,7 @@ use OCP\EventDispatcher\IEventDispatcher; use OCP\Federation\ICloudFederationFactory; use OCP\Federation\ICloudFederationProviderManager; use OCP\Http\Client\IClientService; +use OCP\ILogger; use OCP\OCS\IDiscoveryService; class NotificationsTest extends \Test\TestCase { @@ -57,6 +58,9 @@ class NotificationsTest extends \Test\TestCase { /** @var IEventDispatcher|\PHPUnit\Framework\MockObject\MockObject */ private $eventDispatcher; + /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + private $logger; + protected function setUp(): void { parent::setUp(); @@ -65,6 +69,7 @@ class NotificationsTest extends \Test\TestCase { $this->httpClientService = $this->getMockBuilder('OCP\Http\Client\IClientService')->getMock(); $this->addressHandler = $this->getMockBuilder('OCA\FederatedFileSharing\AddressHandler') ->disableOriginalConstructor()->getMock(); + $this->logger = $this->createMock(ILogger::class); $this->cloudFederationProviderManager = $this->createMock(ICloudFederationProviderManager::class); $this->cloudFederationFactory = $this->createMock(ICloudFederationFactory::class); $this->eventDispatcher = $this->createMock(IEventDispatcher::class); @@ -82,6 +87,7 @@ class NotificationsTest extends \Test\TestCase { $this->addressHandler, $this->httpClientService, $this->discoveryService, + $this->logger, $this->jobList, $this->cloudFederationProviderManager, $this->cloudFederationFactory, @@ -94,6 +100,7 @@ class NotificationsTest extends \Test\TestCase { $this->addressHandler, $this->httpClientService, $this->discoveryService, + $this->logger, $this->jobList, $this->cloudFederationProviderManager, $this->cloudFederationFactory, |