aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-17 09:14:35 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-17 18:58:21 +0200
commit266fb311806570bb6e8ac7fd9ffc734b1f6f3c6d (patch)
tree24a3b4f5e3f3ec2a9f17642ed15f1380baab00c6 /tests/Core/Controller
parent1b67542e0b20d548963087d208c3ee1633e1a5a2 (diff)
downloadnextcloud-server-266fb311806570bb6e8ac7fd9ffc734b1f6f3c6d.tar.gz
nextcloud-server-266fb311806570bb6e8ac7fd9ffc734b1f6f3c6d.zip
fix(tests): preview phpunit
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r--tests/Core/Controller/PreviewControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Core/Controller/PreviewControllerTest.php b/tests/Core/Controller/PreviewControllerTest.php
index 7815505d5a8..1f8cfff1172 100644
--- a/tests/Core/Controller/PreviewControllerTest.php
+++ b/tests/Core/Controller/PreviewControllerTest.php
@@ -26,7 +26,6 @@ namespace Tests\Core\Controller;
use OC\Core\Controller\PreviewController;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
-use OCP\AppFramework\Utility\ITimeFactory;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
@@ -35,6 +34,7 @@ use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Files\Storage\IStorage;
use OCP\IPreview;
use OCP\IRequest;
+use OCP\Preview\IMimeIconProvider;
class PreviewControllerTest extends \Test\TestCase {
/** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
@@ -62,7 +62,7 @@ class PreviewControllerTest extends \Test\TestCase {
$this->previewManager,
$this->rootFolder,
$this->userId,
- $this->createMock(ITimeFactory::class)
+ $this->createMock(IMimeIconProvider::class)
);
}