2020-06-10 13:55:21 +02:00
|
|
|
<?php
|
|
|
|
|
2021-12-08 13:32:21 +01:00
|
|
|
if (!defined('PHPUNIT_RUN')) {
|
|
|
|
define('PHPUNIT_RUN', 1);
|
|
|
|
}
|
|
|
|
|
2020-06-10 13:55:21 +02:00
|
|
|
if (!($ncRoot = getenv('NEXTCLOUD_ROOT'))) {
|
2020-06-19 09:28:58 +02:00
|
|
|
$ncRoot = __DIR__ . '/../../..';
|
2020-06-10 13:55:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
require_once $ncRoot . '/lib/base.php';
|
2020-06-19 09:28:58 +02:00
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
2021-12-08 13:32:21 +01:00
|
|
|
|
|
|
|
\OC_App::loadApp('bbb');
|
|
|
|
|
|
|
|
if (!class_exists('\PHPUnit\Framework\TestCase')) {
|
|
|
|
require_once('PHPUnit/Autoload.php');
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "Using ".realpath($ncRoot)." as Nextcloud root.\n\n";
|