Skip to content
Snippets Groups Projects
Unverified Commit ab797929 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix getMock Updater

parent d8a4769c
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,10 @@ class VersionCheckTest extends \Test\TestCase { ...@@ -41,8 +41,10 @@ class VersionCheckTest extends \Test\TestCase {
->disableOriginalConstructor() ->disableOriginalConstructor()
->getMock(); ->getMock();
$this->updater = $this->getMock('\OC\Updater\VersionCheck', $this->updater = $this->getMockBuilder(VersionCheck::class)
['getUrlContent'], [$clientService, $this->config]); ->setMethods(['getUrlContent'])
->setConstructorArgs([$clientService, $this->config])
->getMock();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment