change configuration.xml and add bootstrap.php

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This commit is contained in:
Jonas Sulzer
2019-01-08 15:00:43 +01:00
parent 0e0ae62c1d
commit 58a852297d
2 changed files with 42 additions and 22 deletions

15
tests/bootstrap.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
require_once __DIR__ . '/../../../lib/base.php';
if (!class_exists('\PHPUnit\Framework\TestCase')) {
require_once('PHPUnit/Autoload.php');
}
\OC_App::loadApp('user_external');
$dummyClass = \OC::$SERVERROOT . '/tests/lib/Util/User/Dummy.php';
if(file_exists($dummyClass)) {
require_once($dummyClass);
}
OC_Hook::clear();