]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix theming tests
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 12 Aug 2016 14:58:59 +0000 (16:58 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 16 Aug 2016 19:09:54 +0000 (21:09 +0200)
apps/theming/tests/Controller/ThemingControllerTest.php
apps/theming/tests/ThemingDefaultsTest.php

index 81b6b886c9fc5661ef9f36edf88fe7b181240afd..2662cb16e0f343180c96b79c1391b035ff3c1bf1 100644 (file)
@@ -25,7 +25,6 @@
 namespace OCA\Theming\Tests\Controller;
 
 use OCA\Theming\Controller\ThemingController;
-use OCA\Theming\Template;
 use OCA\Theming\Util;
 use OCP\AppFramework\Http;
 use OCP\AppFramework\Http\DataResponse;
@@ -40,7 +39,7 @@ class ThemingControllerTest extends TestCase {
        private $request;
        /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
        private $config;
-       /** @var Template|\PHPUnit_Framework_MockObject_MockObject */
+       /** @var ThemingDefaults|\PHPUnit_Framework_MockObject_MockObject */
        private $template;
        /** @var Util */
        private $util;
@@ -56,7 +55,7 @@ class ThemingControllerTest extends TestCase {
        public function setUp() {
                $this->request = $this->getMockBuilder('OCP\IRequest')->getMock();
                $this->config = $this->getMockBuilder('OCP\IConfig')->getMock();
-               $this->template = $this->getMockBuilder('OCA\Theming\Template')
+               $this->template = $this->getMockBuilder('OCA\Theming\ThemingDefaults')
                        ->disableOriginalConstructor()->getMock();
                $this->util = new Util();
                $this->timeFactory = $this->getMockBuilder('OCP\AppFramework\Utility\ITimeFactory')
index 344028253167c64b9609cb460fe57d4d59d190d4..6ef7deea152b9663023399c4988b6da28954779d 100644 (file)
@@ -23,7 +23,6 @@
  */
 namespace OCA\Theming\Tests;
 
-use OCA\Theming\Template;
 use OCA\Theming\ThemingDefaults;
 use OCP\IConfig;
 use OCP\IL10N;
@@ -39,7 +38,7 @@ class ThemingDefaultsTest extends TestCase {
        private $urlGenerator;
        /** @var \OC_Defaults */
        private $defaults;
-       /** @var Template */
+       /** @var ThemingDefaults */
        private $template;
 
        public function setUp() {