[Pkg-owncloud-commits] [owncloud] 117/258: Load apps in test situations
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit c0d1b6bfb2540d85b685d56aa2fb3e8ebe2ad549
Author: Robin McCorkell <rmccorkell at karoshi.org.uk>
Date: Thu Jul 17 10:46:57 2014 +0100
Load apps in test situations
---
apps/files_external/tests/mountconfig.php | 2 --
tests/bootstrap.php | 4 ++++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/apps/files_external/tests/mountconfig.php b/apps/files_external/tests/mountconfig.php
index 5f958e0..7e38a87 100644
--- a/apps/files_external/tests/mountconfig.php
+++ b/apps/files_external/tests/mountconfig.php
@@ -20,8 +20,6 @@
*
*/
-require_once __DIR__ . '/../../../lib/base.php';
-
class Test_Mount_Config_Dummy_Storage {
public function test() {
return true;
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 99374d6..8dd7784 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -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');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list