diff options
author | Greta Doci <gretadoci@gmail.com> | 2019-10-17 14:37:59 +0200 |
---|---|---|
committer | Greta Doci <gretadoci@gmail.com> | 2019-10-17 14:37:59 +0200 |
commit | 469a3fd50efa86babeac6e4261aff9d0d255c63e (patch) | |
tree | 30dfb0c09496a85c9d7d5fd7f006d20383c051f1 /tests | |
parent | 3f764203061221a838e0890a8cf4a36034158932 (diff) |
fix test
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/Controller/PageControllerTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/Controller/PageControllerTest.php b/tests/unit/Controller/PageControllerTest.php index 6090af17..3f3c72b3 100644 --- a/tests/unit/Controller/PageControllerTest.php +++ b/tests/unit/Controller/PageControllerTest.php @@ -24,6 +24,7 @@ namespace OCA\Contacts\Controller; use OCP\AppFramework\Http\TemplateResponse; +use OCP\IConfig; use PHPUnit\Framework\MockObject\MockObject; // use OCP\IInitialStateService; use OCP\IRequest; @@ -43,6 +44,9 @@ class PageControllerTest extends TestCase { /** @var IFactory|MockObject */ private $languageFactory; + /** @var IConfig|MockObject*/ + private $config; + public function setUp() { parent::setUp(); @@ -50,12 +54,15 @@ class PageControllerTest extends TestCase { $this->request = $this->createMock(IRequest::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->languageFactory + ); } |