diff options
Diffstat (limited to 'apps/encryption/tests/Controller/SettingsControllerTest.php')
-rw-r--r-- | apps/encryption/tests/Controller/SettingsControllerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/tests/Controller/SettingsControllerTest.php b/apps/encryption/tests/Controller/SettingsControllerTest.php index 5661ab7033f..4f3e09687e3 100644 --- a/apps/encryption/tests/Controller/SettingsControllerTest.php +++ b/apps/encryption/tests/Controller/SettingsControllerTest.php @@ -26,6 +26,7 @@ namespace OCA\Encryption\Tests\Controller; use OCA\Encryption\Controller\SettingsController; use OCA\Encryption\Session; use OCP\AppFramework\Http; +use OCP\IRequest; use Test\TestCase; class SettingsControllerTest extends TestCase { @@ -64,7 +65,7 @@ class SettingsControllerTest extends TestCase { parent::setUp(); - $this->requestMock = $this->getMock('OCP\IRequest'); + $this->requestMock = $this->createMock(IRequest::class); $this->l10nMock = $this->getMockBuilder('OCP\IL10N') ->disableOriginalConstructor()->getMock(); |