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

index e39c9362a1463d65e488defdd527a66b220779fd..e9b915f1508535377d3049429cb23a2d9d85cc67 100644 (file)
@@ -41,8 +41,10 @@ class VersionCheckTest extends \Test\TestCase {
                        ->disableOriginalConstructor()
                        ->getMock();
 
-               $this->updater = $this->getMock('\OC\Updater\VersionCheck',
-                       ['getUrlContent'], [$clientService, $this->config]);
+               $this->updater = $this->getMockBuilder(VersionCheck::class)
+                       ->setMethods(['getUrlContent'])
+                       ->setConstructorArgs([$clientService, $this->config])
+                       ->getMock();
        }
 
        /**