skala
aportugal 15 years ago
commit b9a5c861e3
  1. 42
      tests/all.test1.php
  2. 58
      tests/all.test2.php
  3. 27
      tests/all.test3.php

@ -1,42 +0,0 @@
<?php
ini_set('memory_limit','256M');
require_once('simpletest/unit_tester.php');
require_once(dirname(__FILE__).'/../main/inc/global.inc.php');
require_once('simpletest/web_tester.php');
//require_once('simpletest/mock_objects.php');
require_once('simpletest/autorun.php');
ob_start();
require_once(dirname(__FILE__).'/../main/inc/lib/course_document.lib.php');
require_once(dirname(__FILE__).'/../main/inc/lib/banner.lib.php');
require_once(dirname(__FILE__).'/../main/inc/tool_navigation_menu.inc.php');
require_once(dirname(__FILE__).'/../main/inc/banner.inc.php');
ob_end_clean();
$_SESSION['_user']['user_id'] = 1;
class AllTests1 extends TestSuite {
function AllTests1() {
global $loginFailed;
$this->TestSuite('All tests1');
//echo dirname(__FILE__).'/main/inc/banner.lib.test.php';
//var_dump($_SESSION);
//$loginFailed = false;
//$_REQUEST['login'] = 'admin';
//$_REQUEST['password'] = 'admin';
$this->addTestFile(dirname(__FILE__).'/main/inc/banner.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/inc/course_document.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/inc/tool_navigation_menu.inc.test.php');
}
}
$test = &new AllTests1();
//$test-> run( new HtmlReporter());
?>

@ -1,58 +0,0 @@
<?php
//Set the time limit for the tests
ini_set('memory_limit','128M');
//List of files than need some tests
require_once('simpletest/unit_tester.php');
require_once('simpletest/web_tester.php');
require_once('simpletest/mock_objects.php');
require_once('simpletest/autorun.php');
require_once ('load_global.php');
require_once(dirname(__FILE__).'/../main/inc/global.inc.php');
require_once(api_get_path(SYS_CODE_PATH).'admin/calendar.lib.php');
require_once(api_get_path(SYS_CODE_PATH).'admin/statistics/statistics.lib.php');
require_once(api_get_path(LIBRARY_PATH).'usermanager.lib.php');
require_once(api_get_path(SYS_CODE_PATH).'/survey/survey.lib.php');
require_once(api_get_path(SYS_CODE_PATH).'/install/install_upgrade.lib.php');
class AllTests2 extends TestSuite {
function AllTests2() {
$this->TestSuite('All tests2');
//$this->addTestFile(dirname(__FILE__).'/main/admin/calendar.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/admin/statistics/statistics.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/auth/lost_password.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/auth/openid/xrds.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/chat/chat_functions.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/conference/get_translation.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/exercice/hotpotatoes.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/newscorm/scorm.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/survey/survey.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/user/userInfoLib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/webservices/user_import/import.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/work/work.lib.test.php');
//$this->addTestFile(dirname(__FILE__).'/main/install/install_upgrade.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/admin/calendar.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/admin/statistics/statistics.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/auth/lost_password.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/auth/openid/xrds.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/chat/chat_functions.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/conference/get_translation.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/exercice/hotpotatoes.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/newscorm/scorm.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/survey/survey.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/user/userInfoLib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/webservices/user_import/import.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/work/work.lib.test.php');
$this->addTestFile(dirname(__FILE__).'/main/install/install_upgrade.lib.test.php');
}
}
$test = &new AllTests2();
//$test-> run( new HtmlReporter());
?>

@ -1,27 +0,0 @@
<?php
//Set the time limit for the tests
ini_set('memory_limit','256M');
//List of files than need some tests
require_once('simpletest/autorun.php');
require_once('simpletest/web_tester.php');
require_once('simpletest/mock_objects.php');
require_once('simpletest/unit_tester.php');
require_once(dirname(__FILE__).'/../main/inc/global.inc.php');
$_SESSION['_user']['user_id'] = 1;
$_user= 1;
class AllTests3 extends TestSuite {
function AllTests3() {
$this->TestSuite('All tests3');
$this->addTestFile(dirname(__FILE__).'/main/admin/sub_language.class.test.php');
}
}
$test = &new AllTests3();
//$test-> run( new HtmlReporter());
?>
Loading…
Cancel
Save