summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:27:27 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:38 +0200
commitab797929e2b6920bd8aad19d7615e607c83306f9 (patch)
treed259be3abccdbc61c4f17872535150a57c02bef1 /tests
parentd8a4769cd633d475e172b23636bcf93ecbdbb864 (diff)
downloadnextcloud-server-ab797929e2b6920bd8aad19d7615e607c83306f9.tar.gz
nextcloud-server-ab797929e2b6920bd8aad19d7615e607c83306f9.zip
Fix getMock Updater
Diffstat (limited to 'tests')
-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();
}
/**