Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/controller/VaultControllerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/controller/VaultControllerTest.php b/tests/unit/controller/VaultControllerTest.php
index 1af88bd8..f94a7464 100644
--- a/tests/unit/controller/VaultControllerTest.php
+++ b/tests/unit/controller/VaultControllerTest.php
@@ -24,6 +24,7 @@
namespace OCA\Passman\Controller;
use OCA\Passman\Service\CredentialService;
+use OCA\Passman\Service\SettingsService;
use OCA\Passman\Service\VaultService;
use PHPUnit_Framework_TestCase;
@@ -46,9 +47,10 @@ class VaultControllerTest extends PHPUnit_Framework_TestCase {
$request = $this->getMockBuilder('OCP\IRequest')->getMock();
$this->vaultService = $this->createMock(VaultService::class);
$this->credentialService = $this->createMock(CredentialService::class);
+ $this->settingsService = $this->createMock(SettingsService::class);
$this->controller = new VaultController(
- 'passman', $request, $this->userId, $this->vaultService, $this->credentialService
+ 'passman', $request, $this->userId, $this->vaultService, $this->credentialService, $this->settingsService
);
}