diff options
author | sualko <klaus@jsxc.org> | 2018-05-23 17:13:51 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2018-05-23 17:13:51 +0300 |
commit | 0d14217e366ddf6d612df91c12a9144e0188aba8 (patch) | |
tree | 260a5c948eec206104b29799f62f8a04cf7369ff /tests | |
parent | c66b8a25c641ade0472da8dcc98adf371d136b42 (diff) |
add privacy notice to managed server registration, add app version to request
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/controller/ManagedServerControllerTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/controller/ManagedServerControllerTest.php b/tests/unit/controller/ManagedServerControllerTest.php index 0c26693..93cf5b7 100644 --- a/tests/unit/controller/ManagedServerControllerTest.php +++ b/tests/unit/controller/ManagedServerControllerTest.php @@ -13,6 +13,7 @@ use OCP\AppFramework\Http; use OCA\OJSXC\Exceptions\Exception; use OCA\OJSXC\IDataRetriever; use OCP\Security\ISecureRandom; +use OCP\App\IAppManager; use PHPUnit\Framework\TestCase; class ManagedServerControllerTest extends TestCase @@ -43,6 +44,7 @@ class ManagedServerControllerTest extends TestCase $this->logger = $this->createMock(ILogger::class); $this->dataRetriever = $this->createMock(IDataRetriever::class); $this->random = $this->createMock(ISecureRandom::class); + $this->appManager = $this->createMock(IAppManager::class); $this->registrationUrl = ''; $this->apiUrl = 'https://localhost/api'; @@ -77,6 +79,7 @@ class ManagedServerControllerTest extends TestCase $this->logger, $this->dataRetriever, $this->random, + $this->appManager, $this->registrationUrl ); } |