From 2d153ff62f09bad53f8255ce7621106654e5fc85 Mon Sep 17 00:00:00 2001
From: j3nsch <j3nsch@gmail.com>
Date: Tue, 21 Nov 2023 11:47:32 +0100
Subject: [PATCH] #1159 Fixed unit tests

---
 tests/library/Application/Document/DuplicateFinderTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/library/Application/Document/DuplicateFinderTest.php b/tests/library/Application/Document/DuplicateFinderTest.php
index 190c0ee71..606cca9c4 100644
--- a/tests/library/Application/Document/DuplicateFinderTest.php
+++ b/tests/library/Application/Document/DuplicateFinderTest.php
@@ -31,6 +31,7 @@
 
 use Opus\Common\Document;
 use Opus\Common\Model\NotFoundException;
+use Symfony\Component\Console\Output\NullOutput;
 
 /**
  * TODO create fixture helper class to create N test documents and get their IDs
@@ -59,6 +60,8 @@ public function setUp(): void
         parent::setUp();
 
         $this->helper = new Application_Document_DuplicateFinder();
+        $this->helper->setOutput(new NullOutput());
+        $this->helper->setRemoveEnabled(true);
 
         $this->setupTestDocuments();
     }