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(); } /**