Skip to content

Commit

Permalink
Merge pull request #2908 from creative-commoners/pulls/5.1/fixtest
Browse files Browse the repository at this point in the history
MNT Fix unit test
  • Loading branch information
GuySartorelli authored Dec 6, 2023
2 parents 04a0c92 + 7027d65 commit 8ca2ade
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 8ca2ade

Please sign in to comment.