Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/monara/public_html/test.athavaneng.com/themes.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
. defined('MOODLE_INTERNAL') || die(); global $CFG; require_once($CFG->dirroot . '/webservice/tests/helpers.php'); /** * Abstract base testcase for mod_lti unit tests. * * @package mod_lti * @author Andrew Madden * @copyright 2020 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ abstract class mod_lti_testcase extends externallib_advanced_testcase { /** * Generate a tool type. * * @param string $uniqueid Each tool type needs a different base url. Provide a unique string for every tool type created. * @param int|null $toolproxyid Optional proxy to associate with tool type. * @return stdClass A tool type. */ protected function generate_tool_type(string $uniqueid, ?int $toolproxyid = null): stdClass { // Create a tool type. $type = new stdClass(); $type->state = LTI_TOOL_STATE_CONFIGURED; $type->name = "Test tool $uniqueid"; $type->description = "Example description $uniqueid"; $type->toolproxyid = $toolproxyid; $type->baseurl = $this->getExternalTestFileUrl("/test$uniqueid.html"); lti_add_type($type, new stdClass()); return $type; } /** * Generate a tool proxy. * * @param string $uniqueid Each tool proxy needs a different reg url. Provide a unique string for every tool proxy created. * @return stdClass A tool proxy. */ protected function generate_tool_proxy(string $uniqueid): stdClass { // Create a tool proxy. $proxy = mod_lti_external::create_tool_proxy("Test proxy $uniqueid", $this->getExternalTestFileUrl("/proxy$uniqueid.html"), [], []); return (object)external_api::clean_returnvalue(mod_lti_external::create_tool_proxy_returns(), $proxy); } }