summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/Users
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-02 10:29:05 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-06 09:29:27 +0200
commit0c154c1ed779ccd68ea67e3528fad36ad6ac9b34 (patch)
tree05a9f0d94c8730ed6de352b91a8db72c72ca957f /apps/encryption/tests/Users
parent831179971cf2d693cc09e4a216387d107567a47e (diff)
downloadnextcloud-server-0c154c1ed779ccd68ea67e3528fad36ad6ac9b34.tar.gz
nextcloud-server-0c154c1ed779ccd68ea67e3528fad36ad6ac9b34.zip
Fix getMock encryption
Diffstat (limited to 'apps/encryption/tests/Users')
-rw-r--r--apps/encryption/tests/Users/SetupTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/tests/Users/SetupTest.php b/apps/encryption/tests/Users/SetupTest.php
index 252092f9e5e..9e856861046 100644
--- a/apps/encryption/tests/Users/SetupTest.php
+++ b/apps/encryption/tests/Users/SetupTest.php
@@ -27,6 +27,7 @@ namespace OCA\Encryption\Tests\Users;
use OCA\Encryption\Users\Setup;
+use OCP\ILogger;
use Test\TestCase;
class SetupTest extends TestCase {
@@ -45,7 +46,7 @@ class SetupTest extends TestCase {
protected function setUp() {
parent::setUp();
- $logMock = $this->getMock('OCP\ILogger');
+ $logMock = $this->createMock(ILogger::class);
$userSessionMock = $this->getMockBuilder('OCP\IUserSession')
->disableOriginalConstructor()
->getMock();