]> source.dussan.org Git - nextcloud-server.git/commitdiff
Load apps in test situations
authorRobin McCorkell <rmccorkell@karoshi.org.uk>
Thu, 17 Jul 2014 09:46:57 +0000 (10:46 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 10 Sep 2014 15:28:25 +0000 (17:28 +0200)
apps/files_external/tests/mountconfig.php
tests/bootstrap.php

index 8a49401a07b14643c6708c463fd1ffb3321ce1bb..ac010464faa6e2a5b6768e07d71394806836a520 100644 (file)
@@ -20,8 +20,6 @@
  *
  */
 
-require_once __DIR__ . '/../../../lib/base.php';
-
 class Test_Mount_Config_Dummy_Storage {
        public function test() {
                return true;
index 99374d68a5c59971215144727ddb9fe65c55c2b0..8dd7784d43059447bddb2c405aba78a8b120be78 100644 (file)
@@ -10,6 +10,10 @@ if ($configDir) {
 
 require_once __DIR__ . '/../lib/base.php';
 
+// load minimum set of apps
+OC_App::loadApps(array('authentication'));
+OC_App::loadApps(array('filesystem', 'logging'));
+
 if (!class_exists('PHPUnit_Framework_TestCase')) {
        require_once('PHPUnit/Autoload.php');
 }