MNT Don't expect trailing slash in tests

This commit is contained in:
Guy Sartorelli 2023-01-13 13:08:13 +13:00
parent a0fc77b030
commit 12c712b895
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A

View File

@ -23,7 +23,7 @@ class ReportAdminTest extends SapphireTest
$this->assertCount(2, $breadcrumbs);
$map = $breadcrumbs[0]->toMap();
$this->assertSame('Reports', $map['Title']);
$this->assertSame('admin/reports/', $map['Link']);
$this->assertSame('admin/reports', $map['Link']);
$map = $breadcrumbs[1]->toMap();
$this->assertSame('Fake report', $map['Title']);
@ -36,7 +36,7 @@ class ReportAdminTest extends SapphireTest
$map = $breadcrumbs[0]->toMap();
$this->assertSame('Reports', $map['Title']);
$this->assertSame('admin/reports/', $map['Link']);
$this->assertSame('admin/reports', $map['Link']);
$map = $breadcrumbs[1]->toMap();
$this->assertSame('Fake report title', $map['Title']);