diff options
author | Björn Schießle <bjoern@schiessle.org> | 2016-01-05 12:51:05 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-02-09 23:43:25 +0100 |
commit | 40a5ba72fc868207356c9143c99a947f1a6e6500 (patch) | |
tree | cea061a08b9d356b0b4b8bc9050ac96f81021f19 /apps/encryption/tests | |
parent | db8f267647a8d6682f132f8d6dc1334daf90fa4e (diff) | |
download | nextcloud-server-40a5ba72fc868207356c9143c99a947f1a6e6500.tar.gz nextcloud-server-40a5ba72fc868207356c9143c99a947f1a6e6500.zip |
sign all encrypted blocks and check signature on decrypt
Diffstat (limited to 'apps/encryption/tests')
-rw-r--r-- | apps/encryption/tests/lib/crypto/cryptTest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/encryption/tests/lib/crypto/cryptTest.php b/apps/encryption/tests/lib/crypto/cryptTest.php index ce4dfb68cf1..c774da1836c 100644 --- a/apps/encryption/tests/lib/crypto/cryptTest.php +++ b/apps/encryption/tests/lib/crypto/cryptTest.php @@ -39,6 +39,10 @@ class cryptTest extends TestCase { /** @var \PHPUnit_Framework_MockObject_MockObject */ private $config; + + /** @var \PHPUnit_Framework_MockObject_MockObject */ + private $l; + /** @var Crypt */ private $crypt; @@ -57,8 +61,9 @@ class cryptTest extends TestCase { $this->config = $this->getMockBuilder('OCP\IConfig') ->disableOriginalConstructor() ->getMock(); + $this->l = $this->getMock('OCP\IL10N'); - $this->crypt = new Crypt($this->logger, $this->userSession, $this->config); + $this->crypt = new Crypt($this->logger, $this->userSession, $this->config, $this->l); } /** |