diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 20:54:21 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:50 +0200 |
commit | 9404c04512332f5037dc4ccc4b5c43b5ba1a66e4 (patch) | |
tree | e97f056fec66f11f6e5fc8f5593f519118d83358 /tests | |
parent | feb85981cd6815083ee095d4c91b6ce8fbdfd50e (diff) | |
download | nextcloud-server-9404c04512332f5037dc4ccc4b5c43b5ba1a66e4.tar.gz nextcloud-server-9404c04512332f5037dc4ccc4b5c43b5ba1a66e4.zip |
Fix getMock AppTests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AppTest.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/lib/AppTest.php b/tests/lib/AppTest.php index 64311f6e4ae..ac4fb913beb 100644 --- a/tests/lib/AppTest.php +++ b/tests/lib/AppTest.php @@ -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; |