mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-39216 url: updated tests to show desired outcome
This commit is contained in:
parent
616396a6cf
commit
45d9752205
@ -145,15 +145,15 @@ class web_testcase extends advanced_testcase {
|
||||
$url = new moodle_url($strurl, array('id' => 0));
|
||||
$this->assertEquals($strurl, $url->out(false));
|
||||
|
||||
$strurl = 'http://moodle.org/course/view.php?id=';
|
||||
$strurl = 'http://moodle.org/course/view.php?id';
|
||||
$url = new moodle_url($strurl, array('id' => false));
|
||||
$this->assertEquals($strurl, $url->out(false));
|
||||
|
||||
$strurl = 'http://moodle.org/course/view.php?id=';
|
||||
$strurl = 'http://moodle.org/course/view.php?id';
|
||||
$url = new moodle_url($strurl, array('id' => null));
|
||||
$this->assertEquals($strurl, $url->out(false));
|
||||
|
||||
$strurl = 'http://moodle.org/course/view.php?id=';
|
||||
$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