Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 21:10:47 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 21:42:38 +0300
commitf167e65d4904cdc1b2516a1058d48d4a9d22b5e0 (patch)
treeb59f6a3911e9a244a706e37b3dd473fafd96072a /tests/lib/L10N
parentba3a90d30c2079a370d66bb9a143174d14cd48bc (diff)
Fix getMock L10NTest
Diffstat (limited to 'tests/lib/L10N')
-rw-r--r--tests/lib/L10N/L10nTest.php8
1 files changed, 5 insertions, 3 deletions
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);
}