diff options
author | Samuel <faust64@gmail.com> | 2021-02-11 14:24:38 +0300 |
---|---|---|
committer | Samuel <faust64@gmail.com> | 2021-02-11 14:24:38 +0300 |
commit | 54cb0372c61c7bbcc1e5f999ca1eca8e1eea579c (patch) | |
tree | 70d3a6234719b5a1df15146cfc36476699c3f2e6 /apps/federatedfilesharing/tests | |
parent | 957e287b797b33dfac9e34ad9e7b66e6aa28cd73 (diff) |
fix(tests)
Signed-off-by: Samuel <faust64@gmail.com>
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, |