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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user