summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 20:54:21 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:50 +0200
commit9404c04512332f5037dc4ccc4b5c43b5ba1a66e4 (patch)
treee97f056fec66f11f6e5fc8f5593f519118d83358 /tests
parentfeb85981cd6815083ee095d4c91b6ce8fbdfd50e (diff)
downloadnextcloud-server-9404c04512332f5037dc4ccc4b5c43b5ba1a66e4.tar.gz
nextcloud-server-9404c04512332f5037dc4ccc4b5c43b5ba1a66e4.zip
Fix getMock AppTests
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppTest.php13
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;