From ab797929e2b6920bd8aad19d7615e607c83306f9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Sep 2016 20:27:27 +0200 Subject: [PATCH] Fix getMock Updater --- tests/lib/Updater/VersionCheckTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/lib/Updater/VersionCheckTest.php b/tests/lib/Updater/VersionCheckTest.php index e39c9362a1..e9b915f150 100644 --- a/tests/lib/Updater/VersionCheckTest.php +++ b/tests/lib/Updater/VersionCheckTest.php @@ -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(); } /**