summaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-25 11:57:27 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-25 12:16:10 +0200
commitd21ded67a70672cfa56a48051fa752b431118604 (patch)
tree5f29256f45dbb761f5cc1ea80dd7d9802114196b /tests/Core
parent0b2ef7e60873fbb2036a85a934bf1af23ebb5bc9 (diff)
downloadnextcloud-server-d21ded67a70672cfa56a48051fa752b431118604.tar.gz
nextcloud-server-d21ded67a70672cfa56a48051fa752b431118604.zip
Keep list of icons in a separate file for use in the accessibility app
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/SvgControllerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Core/Controller/SvgControllerTest.php b/tests/Core/Controller/SvgControllerTest.php
index 7a31d02b90f..2cac635c896 100644
--- a/tests/Core/Controller/SvgControllerTest.php
+++ b/tests/Core/Controller/SvgControllerTest.php
@@ -26,6 +26,7 @@ namespace Tests\Core\Controller;
use OC\AppFramework\Http;
use OC\Core\Controller\SvgController;
+use OC\Template\IconsCacher;
use OCP\App\IAppManager;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\IRequest;
@@ -89,7 +90,8 @@ class SvgControllerTest extends TestCase {
$request = $this->getMockBuilder(IRequest::class)->getMock();
$timeFactory = $this->getMockBuilder(ITimeFactory::class)->getMock();
$appManager = $this->getMockBuilder(IAppManager::class)->getMock();
- $this->svgController = new SvgController('core', $request, $timeFactory, $appManager);
+ $iconsCacher = $this->getMockBuilder(IconsCacher::class)->disableOriginalConstructor()->setMethods(['__construct'])->getMock();
+ $this->svgController = new SvgController('core', $request, $timeFactory, $appManager, $iconsCacher);
}
/**