From: Roeland Jago Douma Date: Wed, 7 Sep 2016 18:10:47 +0000 (+0200) Subject: Fix getMock L10NTest X-Git-Tag: v11.0RC2~654^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f167e65d4904cdc1b2516a1058d48d4a9d22b5e0;p=nextcloud-server.git Fix getMock L10NTest --- diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php index 227e07056a8..6d662efee23 100644 --- a/tests/lib/L10N/L10nTest.php +++ b/tests/lib/L10N/L10nTest.php @@ -12,6 +12,8 @@ namespace Test\L10N; use DateTime; use OC\L10N\Factory; use OC\L10N\L10N; +use OCP\IConfig; +use OCP\IRequest; use OCP\IUserSession; use Test\TestCase; @@ -26,11 +28,11 @@ class L10nTest extends TestCase { */ protected function getFactory() { /** @var \OCP\IConfig $config */ - $config = $this->getMock('OCP\IConfig'); + $config = $this->createMock(IConfig::class); /** @var \OCP\IRequest $request */ - $request = $this->getMock('OCP\IRequest'); + $request = $this->createMock(IRequest::class); /** @var IUserSession $userSession */ - $userSession = $this->getMock('OCP\IUserSession'); + $userSession = $this->createMock(IUserSession::class); return new Factory($config, $request, $userSession, \OC::$SERVERROOT); }