summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-05-18 13:09:36 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-05-18 15:43:53 +0200
commit76761662547f5ac945f9103e290ad0b19e3d9d10 (patch)
treecb44fbd9481bd35b841f57acbcc46b43575950bf /apps/encryption/tests
parenta1e60e78823d0f00681db0a6dc62a5a157b302f4 (diff)
downloadnextcloud-server-76761662547f5ac945f9103e290ad0b19e3d9d10.tar.gz
nextcloud-server-76761662547f5ac945f9103e290ad0b19e3d9d10.zip
add l10n to constructor
Diffstat (limited to 'apps/encryption/tests')
-rw-r--r--apps/encryption/tests/lib/crypto/encryptionTest.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/encryption/tests/lib/crypto/encryptionTest.php b/apps/encryption/tests/lib/crypto/encryptionTest.php
index 960ed112488..419aed72366 100644
--- a/apps/encryption/tests/lib/crypto/encryptionTest.php
+++ b/apps/encryption/tests/lib/crypto/encryptionTest.php
@@ -42,6 +42,9 @@ class EncryptionTest extends TestCase {
/** @var \PHPUnit_Framework_MockObject_MockObject */
private $loggerMock;
+ /** @var \PHPUnit_Framework_MockObject_MockObject */
+ private $l10nMock;
+
public function setUp() {
parent::setUp();
@@ -57,12 +60,16 @@ class EncryptionTest extends TestCase {
$this->loggerMock = $this->getMockBuilder('OCP\ILogger')
->disableOriginalConstructor()
->getMock();
+ $this->l10nMock = $this->getMockBuilder('OCP\IL10N')
+ ->disableOriginalConstructor()
+ ->getMock();
$this->instance = new Encryption(
$this->cryptMock,
$this->keyManagerMock,
$this->utilMock,
- $this->loggerMock
+ $this->loggerMock,
+ $this->l10nMock
);
}