See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]
(no description)
File Size: | 402 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
moodle_url_test:: (19 methods):
test_moodle_url_constructor()
test_moodle_url_get_path()
test_moodle_url_round_trip()
test_moodle_url_empty_param_values()
test_moodle_url_set_good_scheme()
test_moodle_url_set_bad_scheme()
test_moodle_url_round_trip_array_params()
test_compare_url()
test_out_as_local_url()
test_out_as_local_url_error()
test_modified_url_out_as_local_url_error()
test_https_out_as_local_url_error()
test_moodle_url_get_scheme()
test_moodle_url_get_host()
test_moodle_url_get_port()
test_moodle_url_export_params_for_template()
moodle_url_export_params_for_template_provider()
test_make_pluginfile_url()
make_pluginfile_url_provider()
Class: moodle_url_test - X-Ref
Tests for moodle_url.test_moodle_url_constructor() X-Ref |
Test basic moodle_url construction. |
test_moodle_url_get_path() X-Ref |
Tests \moodle_url::get_path(). |
test_moodle_url_round_trip() X-Ref |
No description |
test_moodle_url_empty_param_values() X-Ref |
Test Moodle URL objects created with a param with empty value. |
test_moodle_url_set_good_scheme() X-Ref |
Test set good scheme on Moodle URL objects. |
test_moodle_url_set_bad_scheme() X-Ref |
Test set bad scheme on Moodle URL objects. |
test_moodle_url_round_trip_array_params() X-Ref |
No description |
test_compare_url() X-Ref |
No description |
test_out_as_local_url() X-Ref |
No description |
test_out_as_local_url_error() X-Ref |
No description |
test_modified_url_out_as_local_url_error() X-Ref |
You should get error with modified url |
test_https_out_as_local_url_error() X-Ref |
Try get local url from external https url and you should get error |
test_moodle_url_get_scheme() X-Ref |
No description |
test_moodle_url_get_host() X-Ref |
No description |
test_moodle_url_get_port() X-Ref |
No description |
test_moodle_url_export_params_for_template(string $url, array $expected) X-Ref |
Test exporting params for templates. param: string $url URL with params to test. param: array $expected The expected result. |
moodle_url_export_params_for_template_provider() X-Ref |
Data provider for moodle_url_export_params_for_template tests. return: array[] the array of test data. |
test_make_pluginfile_url($slashargs, $args, $expected) X-Ref |
Test the make_pluginfile_url function. param: bool $slashargs param: array $args Args to be provided to make_pluginfile_url param: string $expected The expected result |
make_pluginfile_url_provider() X-Ref |
Data provider for make_pluginfile_url tests. return: array[] |