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

Fix getMock AppTests

parent feb85981
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
*/
namespace Test;
use OC\AppConfig;
use OCP\IAppConfig;
/**
......@@ -476,13 +477,11 @@ class AppTest extends \Test\TestCase {
private function setupAppConfigMock() {
$appConfig = $this->getMock(
'\OC\AppConfig',
array('getValues'),
array(\OC::$server->getDatabaseConnection()),
'',
false
);
$appConfig = $this->getMockBuilder(AppConfig::class)
->setMethods(['getValues'])
->setConstructorArgs([\OC::$server->getDatabaseConnection()])
->disableOriginalConstructor()
->getMock();
$this->registerAppConfig($appConfig);
return $appConfig;
......
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