diff options
Diffstat (limited to 'apps/encryption/tests/SessionTest.php')
-rw-r--r-- | apps/encryption/tests/SessionTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/tests/SessionTest.php b/apps/encryption/tests/SessionTest.php index 1a22726f5b1..099acddbca1 100644 --- a/apps/encryption/tests/SessionTest.php +++ b/apps/encryption/tests/SessionTest.php @@ -28,6 +28,7 @@ namespace OCA\Encryption\Tests; use OCA\Encryption\Session; +use OCP\ISession; use Test\TestCase; class SessionTest extends TestCase { @@ -175,7 +176,7 @@ class SessionTest extends TestCase { */ protected function setUp() { parent::setUp(); - $this->sessionMock = $this->getMock('OCP\ISession'); + $this->sessionMock = $this->createMock(ISession::class); $this->sessionMock->expects($this->any()) ->method('set') |