Fix getMock AppTests
This commit is contained in:
parent
feb85981cd
commit
9404c04512
|
@ -8,6 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Test;
|
namespace Test;
|
||||||
|
use OC\AppConfig;
|
||||||
use OCP\IAppConfig;
|
use OCP\IAppConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -476,13 +477,11 @@ class AppTest extends \Test\TestCase {
|
||||||
|
|
||||||
|
|
||||||
private function setupAppConfigMock() {
|
private function setupAppConfigMock() {
|
||||||
$appConfig = $this->getMock(
|
$appConfig = $this->getMockBuilder(AppConfig::class)
|
||||||
'\OC\AppConfig',
|
->setMethods(['getValues'])
|
||||||
array('getValues'),
|
->setConstructorArgs([\OC::$server->getDatabaseConnection()])
|
||||||
array(\OC::$server->getDatabaseConnection()),
|
->disableOriginalConstructor()
|
||||||
'',
|
->getMock();
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->registerAppConfig($appConfig);
|
$this->registerAppConfig($appConfig);
|
||||||
return $appConfig;
|
return $appConfig;
|
||||||
|
|
Loading…
Reference in New Issue