diff options
author | Anna Larch <anna@nextcloud.com> | 2022-10-28 10:37:49 +0200 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2023-01-04 16:58:00 +0100 |
commit | 05f2dc68fcdcd26d4841c20f090b8a7c485fa14d (patch) | |
tree | 38c73e22174493e833b7ff27616b5ca3de9992cf /apps/dav/tests | |
parent | 926546333c9b6eaea21ac4006b682d2d9dd0fc3d (diff) | |
download | nextcloud-server-05f2dc68fcdcd26d4841c20f090b8a7c485fa14d.tar.gz nextcloud-server-05f2dc68fcdcd26d4841c20f090b8a7c485fa14d.zip |
[WIP] Add logging to Scheduling Plugin
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php index b651379c2bd..797023cdfae 100644 --- a/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php +++ b/apps/dav/tests/unit/CalDAV/Schedule/PluginTest.php @@ -57,6 +57,9 @@ class PluginTest extends TestCase { /** @var IConfig|MockObject */ private $config; + /** @var MockObject|LoggerInterface */ + private $logger; + protected function setUp(): void { parent::setUp(); @@ -70,12 +73,14 @@ class PluginTest extends TestCase { $this->server->httpResponse = $response; $this->server->xml = new Service(); - $this->plugin = new Plugin($this->config); + $this->logger = $this->createMock(LoggerInterface::class); + + $this->plugin = new Plugin($this->config, $this->logger); $this->plugin->initialize($this->server); } public function testInitialize() { - $plugin = new Plugin($this->config); + $plugin = new Plugin($this->config, $this->logger); $this->server->expects($this->exactly(10)) ->method('on') |