summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/ImageManagerTest.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-06-14 16:55:44 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-14 17:36:02 +0200
commitceee91d9d455eed8b01942bc56767c69077e9f3f (patch)
tree1392d7c0fe0046b0ae0212a5ee7e2c0283b5a2e7 /apps/theming/tests/ImageManagerTest.php
parent5b0ce806a3679b34ae3a6f8e6ae32a0b513a4ca9 (diff)
downloadnextcloud-server-ceee91d9d455eed8b01942bc56767c69077e9f3f.tar.gz
nextcloud-server-ceee91d9d455eed8b01942bc56767c69077e9f3f.zip
Add info message if an exception occurs during the svg to png conversion
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/tests/ImageManagerTest.php')
-rw-r--r--apps/theming/tests/ImageManagerTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/theming/tests/ImageManagerTest.php b/apps/theming/tests/ImageManagerTest.php
index 6bfa5b330a6..38f5fb04969 100644
--- a/apps/theming/tests/ImageManagerTest.php
+++ b/apps/theming/tests/ImageManagerTest.php
@@ -28,6 +28,7 @@ use OCA\Theming\ThemingDefaults;
use OCP\Files\SimpleFS\ISimpleFile;
use OCP\ICacheFactory;
use OCP\IConfig;
+use OCP\ILogger;
use OCP\IURLGenerator;
use Test\TestCase;
use OCP\Files\SimpleFS\ISimpleFolder;
@@ -46,6 +47,8 @@ class ImageManagerTest extends TestCase {
private $urlGenerator;
/** @var ICacheFactory|\PHPUnit_Framework_MockObject_MockObject */
private $cacheFactory;
+ /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ private $logger;
protected function setUp() {
parent::setUp();
@@ -53,11 +56,13 @@ class ImageManagerTest extends TestCase {
$this->appData = $this->createMock(IAppData::class);
$this->urlGenerator = $this->createMock(IURLGenerator::class);
$this->cacheFactory = $this->createMock(ICacheFactory::class);
+ $this->logger = $this->createMock(ILogger::class);
$this->imageManager = new ImageManager(
$this->config,
$this->appData,
$this->urlGenerator,
- $this->cacheFactory
+ $this->cacheFactory,
+ $this->logger
);
}