summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 08:11:49 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 08:52:38 +0200
commitda9a5415a1b3a55fd8335604ccf3bbd4b2fcb2e3 (patch)
tree261cc485caa2c78756d3e90718f24bbfbc79d072 /tests
parent9c9b506aad3958e8dab872c9a4364c2b24564ea2 (diff)
Properly check for circles version
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/PageControllerTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/unit/Controller/PageControllerTest.php b/tests/unit/Controller/PageControllerTest.php
index 1b3625e2..a60bfcc0 100644
--- a/tests/unit/Controller/PageControllerTest.php
+++ b/tests/unit/Controller/PageControllerTest.php
@@ -25,9 +25,10 @@
namespace OCA\Contacts\Controller;
use ChristophWurst\Nextcloud\Testing\TestCase;
+use OC\App\CompareVersion;
use OCA\Contacts\Service\SocialApiService;
-use OCP\AppFramework\Http\TemplateResponse;
use OCP\App\IAppManager;
+use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IInitialStateService;
use OCP\IRequest;
@@ -60,6 +61,9 @@ class PageControllerTest extends TestCase {
/** @var IAppManager|MockObject*/
private $appManager;
+ /** @var CompareVersion|MockObject*/
+ private $compareVersion;
+
protected function setUp(): void {
parent::setUp();
@@ -70,6 +74,7 @@ class PageControllerTest extends TestCase {
$this->userSession = $this->createMock(IUserSession::class);
$this->socialApi = $this->createMock(SocialApiService::class);
$this->appManager = $this->createMock(IAppManager::class);
+ $this->compareVersion = $this->createMock(CompareVersion::class);
$this->controller = new PageController(
$this->request,
@@ -78,7 +83,8 @@ class PageControllerTest extends TestCase {
$this->languageFactory,
$this->userSession,
$this->socialApi,
- $this->appManager
+ $this->appManager,
+ $this->compareVersion
);
}