aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Updater/VersionCheckTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Updater/VersionCheckTest.php b/tests/lib/Updater/VersionCheckTest.php
index e39c9362a14..e9b915f1508 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();
}
/**