MNT Fix unit test

This commit is contained in:
Steve Boyd 2023-12-06 11:58:34 +13:00
parent 04a0c928b3
commit 7027d654d2

View File

@ -530,7 +530,11 @@ class SiteTreeTest extends SapphireTest
$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'),