nextcloud-memento/tests/ bootstrap.php
20 lines
457 B

  1. <?php
  2. if (!defined('PHPUNIT_RUN')) {
  3. define('PHPUNIT_RUN', 1);
  4. }
  5. require_once __DIR__.'/../../../lib/base.php';
  6. // Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
  7. \OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
  8. // Fix for "Autoload path not allowed: .../memento/tests/testcase.php"
  9. \OC_App::loadApp('memento');
  10. if(!class_exists('PHPUnit_Framework_TestCase')) {
  11. require_once('PHPUnit/Autoload.php');
  12. }
  13. OC_Hook::clear();