simpletest-navigation MDL-20395 Fixed up regressions in the simpletest caused by recent changes to upgrades to navigation lib.

Also fixed issue whereby PAGE->set_url was being called by testdeprecatedlib but not being reset to the original value causing several flow on errors through simpletests
This commit is contained in:
samhemelryk
2009-10-01 02:31:42 +00:00
parent e28112cc52
commit c705a24eb2
4 changed files with 38 additions and 60 deletions
+9
View File
@@ -502,6 +502,15 @@ class moodle_url {
* @return boolean
*/
public function compare(moodle_url $url, $matchtype = URL_MATCH_EXACT) {
// Set path to / if it is not set
if ($this->path == '') {
$this->path = '/';
}
if ($url->path == '') {
$url->path = '/';
}
$baseself = $this->out(true);
$baseother = $url->out(true);