MDL-10064 global $CFG in unit test files is non standard, it is recommended to use MOODLE_INTERNAL test in all library files
This commit is contained in:
@@ -8,10 +8,9 @@
|
||||
* @package SimpleTestEx
|
||||
*/
|
||||
|
||||
/** */
|
||||
require_once(dirname(__FILE__) . '/../../config.php');
|
||||
|
||||
global $CFG;
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
}
|
||||
|
||||
class slow_code_test extends UnitTestCase {
|
||||
var $php_code_extensions = array('php', 'html', 'php\.inc');
|
||||
|
||||
Reference in New Issue
Block a user