summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-24 15:21:46 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-24 15:21:46 +0100
commitcca8617cd70298e205aa3a4f68dc174d73009f15 (patch)
tree34b15ca0aa59f49ab38fe1b24d0d39349896aa7b /tests
parent9f1d38b0980a2fb8c7736922de6dc33666b27afe (diff)
Log the exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/php/Service/RecordingServiceTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/php/Service/RecordingServiceTest.php b/tests/php/Service/RecordingServiceTest.php
index f99ac5c12..998e012b1 100644
--- a/tests/php/Service/RecordingServiceTest.php
+++ b/tests/php/Service/RecordingServiceTest.php
@@ -47,6 +47,7 @@ use OCP\Files\IRootFolder;
use OCP\Notification\IManager;
use OCP\Share\IManager as ShareManager;
use PHPUnit\Framework\MockObject\MockObject;
+use Psr\Log\LoggerInterface;
use Test\TestCase;
class RecordingServiceTest extends TestCase {
@@ -70,6 +71,8 @@ class RecordingServiceTest extends TestCase {
private $shareManager;
/** @var ChatManager|MockObject */
private $chatManager;
+ /** @var LoggerInterface|MockObject */
+ private $logger;
/** @var RecordingService */
protected $recordingService;
@@ -86,6 +89,7 @@ class RecordingServiceTest extends TestCase {
$this->roomService = $this->createMock(RoomService::class);
$this->shareManager = $this->createMock(ShareManager::class);
$this->chatManager = $this->createMock(ChatManager::class);
+ $this->logger = $this->createMock(LoggerInterface::class);
$this->recordingService = new RecordingService(
$this->mimeTypeDetector,
@@ -97,7 +101,8 @@ class RecordingServiceTest extends TestCase {
$this->config,
$this->roomService,
$this->shareManager,
- $this->chatManager
+ $this->chatManager,
+ $this->logger,
);
}