Skip to content

Commit

Permalink
Merge branch '5.1' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 9, 2023
2 parents 1f1b64f + 8ca2ade commit d395963
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/php/Model/SiteTreeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,11 @@ public function testRelativeLink()
$staff->RelativeLink(),
'Matches URLSegment plus parent on second level without parameters'
);
$this->assertEquals('0/', $numeric0->RelativeLink(), 'Matches URLSegment for segment = 0');
$this->assertEquals(
Controller::normaliseTrailingSlash('0/'),
$numeric0->RelativeLink(),
'Matches URLSegment for segment = 0'
);
$this->assertEquals(
'about-us/edit',
$about->RelativeLink('edit'),
Expand Down

0 comments on commit d395963

Please sign in to comment.