/OC/Server has created too early causing issues with config operations as OC:$SERVERPATH was not yet initialized
This fixes unit test execution
This commit is contained in:
parent
af0069bf03
commit
5d4e9e0d25
|
@ -376,9 +376,6 @@ class OC {
|
|||
self::$loader->registerPrefix('Patchwork', '3rdparty');
|
||||
spl_autoload_register(array(self::$loader, 'load'));
|
||||
|
||||
// setup the basic server
|
||||
self::$server = new \OC\Server();
|
||||
|
||||
// set some stuff
|
||||
//ob_start();
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
|
@ -458,6 +455,9 @@ class OC {
|
|||
stream_wrapper_register('quota', 'OC\Files\Stream\Quota');
|
||||
stream_wrapper_register('oc', 'OC\Files\Stream\OC');
|
||||
|
||||
// setup the basic server
|
||||
self::$server = new \OC\Server();
|
||||
|
||||
self::initTemplateEngine();
|
||||
if (!self::$CLI) {
|
||||
self::initSession();
|
||||
|
|
Loading…
Reference in New Issue