]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getMock L10NTest
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:10:47 +0000 (20:10 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 7 Sep 2016 18:42:38 +0000 (20:42 +0200)
tests/lib/L10N/L10nTest.php

index 227e07056a85430d68d421b018d7e714168111a6..6d662efee237a04e11684751200abb78b5033b48 100644 (file)
@@ -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);
        }