diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-02 10:29:05 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-09-06 09:29:27 +0200 |
commit | 0c154c1ed779ccd68ea67e3528fad36ad6ac9b34 (patch) | |
tree | 05a9f0d94c8730ed6de352b91a8db72c72ca957f /apps/encryption/tests/Crypto/CryptTest.php | |
parent | 831179971cf2d693cc09e4a216387d107567a47e (diff) | |
download | nextcloud-server-0c154c1ed779ccd68ea67e3528fad36ad6ac9b34.tar.gz nextcloud-server-0c154c1ed779ccd68ea67e3528fad36ad6ac9b34.zip |
Fix getMock encryption
Diffstat (limited to 'apps/encryption/tests/Crypto/CryptTest.php')
-rw-r--r-- | apps/encryption/tests/Crypto/CryptTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/tests/Crypto/CryptTest.php b/apps/encryption/tests/Crypto/CryptTest.php index 7bd06471b53..b808acaf199 100644 --- a/apps/encryption/tests/Crypto/CryptTest.php +++ b/apps/encryption/tests/Crypto/CryptTest.php @@ -27,6 +27,7 @@ namespace OCA\Encryption\Tests\Crypto; use OCA\Encryption\Crypto\Crypt; +use OCP\IL10N; use Test\TestCase; class CryptTest extends TestCase { @@ -62,7 +63,7 @@ class CryptTest extends TestCase { $this->config = $this->getMockBuilder('OCP\IConfig') ->disableOriginalConstructor() ->getMock(); - $this->l = $this->getMock('OCP\IL10N'); + $this->l = $this->createMock(IL10N::class); $this->crypt = new Crypt($this->logger, $this->userSession, $this->config, $this->l); } |