Fix getMock AppTests

This commit is contained in:
Roeland Jago Douma 2016-09-12 20:54:21 +02:00
parent feb85981cd
commit 9404c04512
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 6 additions and 7 deletions

View File

@ -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;