diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:27:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-07 20:42:38 +0200 |
commit | ab797929e2b6920bd8aad19d7615e607c83306f9 (patch) | |
tree | d259be3abccdbc61c4f17872535150a57c02bef1 /tests | |
parent | d8a4769cd633d475e172b23636bcf93ecbdbb864 (diff) | |
download | nextcloud-server-ab797929e2b6920bd8aad19d7615e607c83306f9.tar.gz nextcloud-server-ab797929e2b6920bd8aad19d7615e607c83306f9.zip |
Fix getMock Updater
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Updater/VersionCheckTest.php | 6 |
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(); } /** |