ENBugs39819-39820"); $_SERVER['HTTP_HOST'] = ""; $_SERVER['SCRIPT_NAME'] = ""; $_SERVER['QUERY_STRING'] = ""; $_REQUEST['view'] = 'documentation'; $_REQUEST['lang'] = 'en_us'; $_REQUEST['help_module'] = 'Accounts'; $_REQUEST['help_action'] = 'DetailView'; ob_start(); require "modules/Administration/SupportPortal.php"; $tStr = ob_get_contents(); ob_clean(); unlink("modules/Accounts/language/en_us.help.DetailView.html"); // I expect to get the en_us normal help file.... $this->assertRegExp("/.*ENBugs39819\-39820.*/", $tStr); } public function testLoadCustomItHelp() { // Custom help (NOT en_us) on a standard module. file_put_contents("custom/modules/Accounts/language/it_it.help.DetailView.html", "

Bugs39819-39820

"); $_SERVER['HTTP_HOST'] = ""; $_SERVER['SCRIPT_NAME'] = ""; $_SERVER['QUERY_STRING'] = ""; $_REQUEST['view'] = 'documentation'; $_REQUEST['lang'] = 'it_it'; $_REQUEST['help_module'] = 'Accounts'; $_REQUEST['help_action'] = 'DetailView'; ob_start(); require "modules/Administration/SupportPortal.php"; $tStr = ob_get_contents(); ob_clean(); unlink("custom/modules/Accounts/language/it_it.help.DetailView.html"); // I expect to get the it_it custom help.... $this->assertRegExp("/.*Bugs39819\-39820.*/", $tStr); } }