mirror of
https://github.com/chenasraf/cospend-nc.git
synced 2026-05-18 01:39:06 +00:00
27 lines
668 B
PHP
Executable File
27 lines
668 B
PHP
Executable File
<?php
|
|
/**
|
|
* Nextcloud - cospend
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later. See the COPYING file.
|
|
*
|
|
*/
|
|
define('PHPUNIT_RUN', 1);
|
|
|
|
// ugly hack to fix issues with template code using static code
|
|
$_SERVER['REQUEST_URI'] = '/index.php/apps/cospend/';
|
|
$_SERVER['SCRIPT_NAME'] = '/index.php';
|
|
|
|
require_once __DIR__.'/../../../lib/base.php';
|
|
|
|
if (version_compare(implode('.', \OCP\Util::getVersion()), '8.2', '>=')) {
|
|
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
|
\OC_App::loadApp('cospend');
|
|
}
|
|
|
|
//if(!class_exists('PHPUnit_Framework_TestCase')) {
|
|
// require_once('PHPUnit/Autoload.php');
|
|
//}
|
|
|
|
OC_Hook::clear();
|