From 362e6b29038ae43d65114062c254774bc3b64803 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 8 May 2018 20:59:31 +0200 Subject: Fix tests Signed-off-by: Roeland Jago Douma --- tests/Core/Controller/CssControllerTest.php | 3 ++- tests/Core/Controller/JsControllerTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/Core/Controller') diff --git a/tests/Core/Controller/CssControllerTest.php b/tests/Core/Controller/CssControllerTest.php index 8ec15f449a0..f4e6e83201e 100644 --- a/tests/Core/Controller/CssControllerTest.php +++ b/tests/Core/Controller/CssControllerTest.php @@ -23,6 +23,7 @@ namespace Tests\Core\Controller; use OC\Core\Controller\CssController; +use OC\Files\AppData\AppData; use OC\Files\AppData\Factory; use OCP\AppFramework\Http; use OCP\AppFramework\Http\FileDisplayResponse; @@ -51,7 +52,7 @@ class CssControllerTest extends TestCase { /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */ $factory = $this->createMock(Factory::class); - $this->appData = $this->createMock(IAppData::class); + $this->appData = $this->createMock(AppData::class); $factory->expects($this->once()) ->method('get') ->with('css') diff --git a/tests/Core/Controller/JsControllerTest.php b/tests/Core/Controller/JsControllerTest.php index 3910045276b..307ef837786 100644 --- a/tests/Core/Controller/JsControllerTest.php +++ b/tests/Core/Controller/JsControllerTest.php @@ -23,6 +23,7 @@ namespace Tests\Core\Controller; use OC\Core\Controller\JsController; +use OC\Files\AppData\AppData; use OC\Files\AppData\Factory; use OCP\AppFramework\Http; use OCP\AppFramework\Http\FileDisplayResponse; @@ -51,7 +52,7 @@ class JsControllerTest extends TestCase { /** @var Factory|\PHPUnit_Framework_MockObject_MockObject $factory */ $factory = $this->createMock(Factory::class); - $this->appData = $this->createMock(IAppData::class); + $this->appData = $this->createMock(AppData::class); $factory->expects($this->once()) ->method('get') ->with('js') -- cgit v1.2.3