From f8f4fc55dd1cc5a88cbe9e62d1b7878ae51f67a0 Mon Sep 17 00:00:00 2001 From: Mojmir Fendek Date: Fri, 28 Jul 2023 14:04:50 +1200 Subject: [PATCH] Unit test fix. --- tests/php/Models/LinkTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/php/Models/LinkTest.php b/tests/php/Models/LinkTest.php index 11a1aa70..a308e369 100644 --- a/tests/php/Models/LinkTest.php +++ b/tests/php/Models/LinkTest.php @@ -261,7 +261,7 @@ public function linkUrlCasesDataProvider(): array 'internal link / page only' => [ 'page-link-page-only', SiteTreeLink::class, - '/page-1/', + '/page-1', ], 'internal link / anchor only' => [ 'page-link-anchor-only', @@ -276,17 +276,17 @@ public function linkUrlCasesDataProvider(): array 'internal link / with anchor' => [ 'page-link-with-anchor', SiteTreeLink::class, - '/page-1/#my-anchor', + '/page-1#my-anchor', ], 'internal link / with query string' => [ 'page-link-with-query-string', SiteTreeLink::class, - '/page-1/?param1=value1¶m2=option2', + '/page-1?param1=value1¶m2=option2', ], 'internal link / with query string and anchor' => [ 'page-link-with-query-string-and-anchor', SiteTreeLink::class, - '/page-1/?param1=value1¶m2=option2#my-anchor', + '/page-1?param1=value1¶m2=option2#my-anchor', ], 'email link / with email' => [ 'email-link-with-email',