MDL-39216 url: updated tests to show desired outcome

This commit is contained in:
Sam Hemelryk
2013-04-30 11:09:47 +12:00
parent 616396a6cf
commit 45d9752205
+3 -3
View File
@@ -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));
}