2021-06-27 13:19:26 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!defined('PHPUNIT_RUN')) {
|
2021-07-13 09:43:54 +02:00
|
|
|
define('PHPUNIT_RUN', 1);
|
2021-06-27 13:19:26 +02:00
|
|
|
}
|
|
|
|
|
2021-07-13 09:43:54 +02:00
|
|
|
require_once __DIR__ . '/../../../lib/base.php';
|
2021-08-24 22:48:46 +02:00
|
|
|
require_once __DIR__ . '/Helper/DatabaseTransaction.php';
|
2021-06-27 13:19:26 +02:00
|
|
|
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
|
2021-07-13 09:43:54 +02:00
|
|
|
OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
2021-06-27 13:19:26 +02:00
|
|
|
|
|
|
|
// Fix for "Autoload path not allowed: .../gpoddersync/tests/testcase.php"
|
2021-07-13 09:43:54 +02:00
|
|
|
OC_App::loadApp('gpoddersync');
|
2021-06-27 13:19:26 +02:00
|
|
|
|
|
|
|
OC_Hook::clear();
|