Fix getMock Updater
This commit is contained in:
parent
d8a4769cd6
commit
ab797929e2
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue