mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #157 from creative-commoners/pulls/5/no-trailing-slash
MNT Don't expect trailing slash in tests
This commit is contained in:
commit
17ed7323fd
@ -23,7 +23,7 @@ class ReportAdminTest extends SapphireTest
|
|||||||
$this->assertCount(2, $breadcrumbs);
|
$this->assertCount(2, $breadcrumbs);
|
||||||
$map = $breadcrumbs[0]->toMap();
|
$map = $breadcrumbs[0]->toMap();
|
||||||
$this->assertSame('Reports', $map['Title']);
|
$this->assertSame('Reports', $map['Title']);
|
||||||
$this->assertSame('admin/reports/', $map['Link']);
|
$this->assertSame('admin/reports', $map['Link']);
|
||||||
|
|
||||||
$map = $breadcrumbs[1]->toMap();
|
$map = $breadcrumbs[1]->toMap();
|
||||||
$this->assertSame('Fake report', $map['Title']);
|
$this->assertSame('Fake report', $map['Title']);
|
||||||
@ -36,7 +36,7 @@ class ReportAdminTest extends SapphireTest
|
|||||||
|
|
||||||
$map = $breadcrumbs[0]->toMap();
|
$map = $breadcrumbs[0]->toMap();
|
||||||
$this->assertSame('Reports', $map['Title']);
|
$this->assertSame('Reports', $map['Title']);
|
||||||
$this->assertSame('admin/reports/', $map['Link']);
|
$this->assertSame('admin/reports', $map['Link']);
|
||||||
|
|
||||||
$map = $breadcrumbs[1]->toMap();
|
$map = $breadcrumbs[1]->toMap();
|
||||||
$this->assertSame('Fake report title', $map['Title']);
|
$this->assertSame('Fake report title', $map['Title']);
|
||||||
|
Loading…
Reference in New Issue
Block a user