Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-09 18:32:07 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-09 18:32:07 +0300
commit923d012f5a36ee3bcafe6d328c4e56399d40a75e (patch)
treedbde68f21a7f37cefe99fe29c7560e6a14bad5f4 /tests
parentbbb075e640a7871b20cb86465cf23c6901bfd994 (diff)
Load all installed apps in tests
Diffstat (limited to 'tests')
-rw-r--r--tests/_bootstrap.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/_bootstrap.php b/tests/_bootstrap.php
index 462408ac..696adda9 100644
--- a/tests/_bootstrap.php
+++ b/tests/_bootstrap.php
@@ -14,16 +14,16 @@ use Codeception\Util\Autoload;
define('PHPUNIT_RUN', 1);
+// Add core
require_once __DIR__ . '/../../../lib/base.php';
-OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
-Autoload::addNamespace('Test', '/../../../tests/lib');
+// Add core tests to the list of valid paths
+OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
-// Load minimum set of apps
-OC_App::loadApps(['authentication']);
-OC_App::loadApps(['filesystem', 'logging']);
+// Give access to core tests to Codeception
+Autoload::addNamespace('Test', '/../../../tests/lib');
-// Load this app
-OC_App::loadApp('gallery');
+// Load all apps
+OC_App::loadApps();
OC_Hook::clear();