Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]
Tests for moodle_url.
Copyright: | 2018 Andrew Nicols <andrew@nicols.co.uk> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 340 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_moodle_url_testcase:: (17 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_make_pluginfile_url()
make_pluginfile_url_provider()
Class: core_moodle_url_testcase - 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_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[] |