From 08f9874745c1093260e5acd2241c01397cc19c2c Mon Sep 17 00:00:00 2001 From: Ryan Fletcher Date: Wed, 11 Jul 2018 11:50:11 -0400 Subject: [PATCH] Updated constructor in PageControllerTest Signed-off-by: Ryan Fletcher --- tests/unit/controller/PageControllerTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php index ff0d444e3..2e7bd778f 100644 --- a/tests/unit/controller/PageControllerTest.php +++ b/tests/unit/controller/PageControllerTest.php @@ -24,6 +24,7 @@ namespace OCA\Deck\Controller; use PHPUnit_Framework_TestCase; +use OCA\Deck\Service\DefaultBoardService; class PageControllerTest extends \Test\TestCase { @@ -31,6 +32,7 @@ class PageControllerTest extends \Test\TestCase { private $request; private $l10n; private $userId = 'john'; + private $defaultBoardService; public function setUp() { $this->l10n = $this->request = $this->getMockBuilder( @@ -42,8 +44,10 @@ class PageControllerTest extends \Test\TestCase { ->disableOriginalConstructor() ->getMock(); + $this->defaultBoardService = $this->createMock(DefaultBoardService::class); + $this->controller = new PageController( - 'deck', $this->request, $this->l10n, $this->userId + 'deck', $this->request, $this->defaultBoardService, $this->l10n, $this->userId ); }