diff options
Diffstat (limited to 'tests/unit/Controller/PageControllerTest.php')
-rw-r--r-- | tests/unit/Controller/PageControllerTest.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/unit/Controller/PageControllerTest.php b/tests/unit/Controller/PageControllerTest.php index d86f055b..c492ecdf 100644 --- a/tests/unit/Controller/PageControllerTest.php +++ b/tests/unit/Controller/PageControllerTest.php @@ -29,6 +29,7 @@ use PHPUnit\Framework\MockObject\MockObject; use OCP\IInitialStateService; use OCP\IRequest; use OCP\L10N\IFactory; +use OCA\Contacts\Service\SocialApiService; use ChristophWurst\Nextcloud\Testing\TestCase; class PageControllerTest extends TestCase { @@ -37,31 +38,34 @@ class PageControllerTest extends TestCase { /** @var IRequest|MockObject */ private $request; + /** @var IConfig|MockObject*/ + private $config; + /** @var IInitialStateService|MockObject */ private $initialStateService; /** @var IFactory|MockObject */ private $languageFactory; - /** @var IConfig|MockObject*/ - private $config; - + /** @var SocialApiService|MockObject*/ + private $socialApi; public function setUp() { parent::setUp(); $this->request = $this->createMock(IRequest::class); + $this->config = $this->createMock(IConfig::class); $this->initialStateService = $this->createMock(IInitialStateService::class); $this->languageFactory = $this->createMock(IFactory::class); - $this->config = $this->createMock(IConfig::class); + $this->socialApi = $this->createMock(SocialApiService::class); $this->controller = new PageController( 'contacts', $this->request, $this->config, $this->initialStateService, - $this->languageFactory - + $this->languageFactory, + $this->socialApi ); } |