fix theming tests

This commit is contained in:
Arthur Schiwon 2016-08-12 16:58:59 +02:00 committed by Lukas Reschke
parent 6fa34e334f
commit fe29483a9d
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 3 additions and 5 deletions

View 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')

View 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() {