mirror of
https://github.com/moodle/moodle.git
synced 2025-05-02 22:45:03 +02:00
MDL-39216 url: included test for empty string param
This commit is contained in:
parent
5c8f681713
commit
a697000b53
@ -153,6 +153,10 @@ class web_testcase extends advanced_testcase {
|
||||
$url = new moodle_url($strurl, array('id' => null));
|
||||
$this->assertEquals($strurl, $url->out(false));
|
||||
|
||||
$strurl = 'http://moodle.org/course/view.php?id';
|
||||
$url = new moodle_url($strurl, array('id' => ''));
|
||||
$this->assertEquals($strurl, $url->out(false));
|
||||
|
||||
$strurl = 'http://moodle.org/course/view.php?id';
|
||||
$url = new moodle_url($strurl);
|
||||
$this->assertEquals($strurl, $url->out(false));
|
||||
|
Loading…
x
Reference in New Issue
Block a user