summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-04-17 12:31:40 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-04-17 15:45:29 +0200
commit014d0ced6489858cb4acfc74edb5cf7948f4b0f1 (patch)
treec56402d515312a600fde2363df9bf56d5eac04b4 /tests
parent111346e29d957c631bc7f892f597e3f805932435 (diff)
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/PageControllerTest.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/unit/Controller/PageControllerTest.php b/tests/unit/Controller/PageControllerTest.php
index 3f3c72b3..1673269e 100644
--- a/tests/unit/Controller/PageControllerTest.php
+++ b/tests/unit/Controller/PageControllerTest.php
@@ -26,7 +26,7 @@ namespace OCA\Contacts\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use PHPUnit\Framework\MockObject\MockObject;
-// use OCP\IInitialStateService;
+use OCP\IInitialStateService;
use OCP\IRequest;
use OCP\L10N\IFactory;
use ChristophWurst\Nextcloud\Testing\TestCase;
@@ -39,11 +39,12 @@ class PageControllerTest extends TestCase {
/** @var IRequest|MockObject */
private $request;
- // /** @var IInitialStateService|MockObject */
- // private $initialStateService;
+ /** @var IInitialStateService|MockObject */
+ private $initialStateService;
/** @var IFactory|MockObject */
private $languageFactory;
+
/** @var IConfig|MockObject*/
private $config;
@@ -52,15 +53,15 @@ class PageControllerTest extends TestCase {
parent::setUp();
$this->request = $this->createMock(IRequest::class);
- // $this->initialStateService = $this->createMock(IInitialStateService::class);
+ $this->initialStateService = $this->createMock(IInitialStateService::class);
$this->languageFactory = $this->createMock(IFactory::class);
$this->config = $this->createMock(IConfig::class);
$this->controller = new PageController(
'contacts',
$this->request,
- // $this->initialStateService,
$this->config,
+ $this->initialStateService,
$this->languageFactory
);