aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authornfebe <fenn25.fn@gmail.com>2025-04-11 08:49:50 +0100
committernfebe <fenn25.fn@gmail.com>2025-04-17 14:24:18 +0100
commit6b89838cc245a9c0c20e6efcac701229889bb4ed (patch)
tree4a62d531237fe667d50785269828ba26962858c4 /tests
parent47f1950a402fe2064276d7fde12510abe6de583c (diff)
downloadnextcloud-server-6b89838cc245a9c0c20e6efcac701229889bb4ed.tar.gz
nextcloud-server-6b89838cc245a9c0c20e6efcac701229889bb4ed.zip
feat: add logging to preview generationfeat/no-issue/add-logging-preview-generation
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Preview/GeneratorTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Preview/GeneratorTest.php b/tests/lib/Preview/GeneratorTest.php
index 7bd121250fb..8a08d741909 100644
--- a/tests/lib/Preview/GeneratorTest.php
+++ b/tests/lib/Preview/GeneratorTest.php
@@ -19,6 +19,7 @@ use OCP\IImage;
use OCP\IPreview;
use OCP\Preview\BeforePreviewFetchedEvent;
use OCP\Preview\IProviderV2;
+use Psr\Log\LoggerInterface;
class GeneratorTest extends \Test\TestCase {
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
@@ -39,6 +40,8 @@ class GeneratorTest extends \Test\TestCase {
/** @var Generator */
private $generator;
+ private LoggerInterface|\PHPUnit\Framework\MockObject\MockObject $logger;
+
protected function setUp(): void {
parent::setUp();
@@ -47,13 +50,15 @@ class GeneratorTest extends \Test\TestCase {
$this->appData = $this->createMock(IAppData::class);
$this->helper = $this->createMock(GeneratorHelper::class);
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
+ $this->logger = $this->createMock(LoggerInterface::class);
$this->generator = new Generator(
$this->config,
$this->previewManager,
$this->appData,
$this->helper,
- $this->eventDispatcher
+ $this->eventDispatcher,
+ $this->logger,
);
}