summaryrefslogtreecommitdiffstats
path: root/tests/lib/app.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-07 10:26:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-07 14:54:55 +0100
commit190cc2bb6762c5f505e1e90bd582caa4fecb9cce (patch)
treee758dbc6da9f106d07146838507988b6a7d9bda1 /tests/lib/app.php
parentfddece9552a4b194cdce8c3916e33fa8597c9008 (diff)
downloadnextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.tar.gz
nextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.zip
Remove OC_DB::getConnection
Diffstat (limited to 'tests/lib/app.php')
-rw-r--r--tests/lib/app.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/app.php b/tests/lib/app.php
index 1c38a1c161f..389c9e5d2cf 100644
--- a/tests/lib/app.php
+++ b/tests/lib/app.php
@@ -461,7 +461,7 @@ class Test_App extends \Test\TestCase {
$appConfig = $this->getMock(
'\OC\AppConfig',
array('getValues'),
- array(\OC_DB::getConnection()),
+ array(\OC::$server->getDatabaseConnection()),
'',
false
);
@@ -488,8 +488,8 @@ class Test_App extends \Test\TestCase {
* Restore the original app config service.
*/
private function restoreAppConfig() {
- \OC::$server->registerService('AppConfig', function ($c) {
- return new \OC\AppConfig(\OC_DB::getConnection());
+ \OC::$server->registerService('AppConfig', function (\OC\Server $c) {
+ return new \OC\AppConfig($c->getDatabaseConnection());
});
\OC::$server->registerService('AppManager', function (\OC\Server $c) {
return new \OC\App\AppManager($c->getUserSession(), $c->getAppConfig(), $c->getGroupManager(), $c->getMemCacheFactory());