Minor fix for phpunit tests

skala
Yannick Warnier 12 years ago
parent 2dbf1c8b78
commit d97d4db11e
  1. 4
      main/inc/lib/add_courses_to_session_functions.lib.php
  2. 1
      tests/phpunit/classes/AddCourseToSessionTest.lib.php

@ -7,9 +7,7 @@
/**
* Init
*/
require_once (api_get_path(LIBRARY_PATH).'xajax/xajax.inc.php');
//require_once (api_get_path(SYS_CODE_PATH).'admin/add_courses_to_session.php');
require_once dirname(__FILE__).'/xajax/xajax.inc.php';
/**
* AddCourseToSession class
*/

@ -16,6 +16,7 @@ class AddCourseToSessionTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
require_once dirname(__FILE__).'/../../../main/inc/global.inc.php';
require_once dirname(__FILE__).'/../../../main/inc/lib/database.lib.php';
$this->object = new AddCourseToSession;
}

Loading…
Cancel
Save