Fix getMock Updater

This commit is contained in:
Roeland Jago Douma 2016-09-07 20:27:27 +02:00
parent d8a4769cd6
commit ab797929e2
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View file

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