Switch assertions to test the end of the strings

This commit is contained in:
Robbie Averill 2019-02-13 09:13:10 +07:00
parent 14283d88b8
commit c134ce44c1
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class BlogPostTest extends SapphireTest
$archiveLink = $blogPost->getMonthlyArchiveLink($type); $archiveLink = $blogPost->getMonthlyArchiveLink($type);
$this->assertContains('archive/', $archiveLink); $this->assertContains('archive/', $archiveLink);
$this->assertContains($expected, $archiveLink); $this->assertStringEndsWith($expected, $archiveLink);
} }
/** /**
@ -182,6 +182,6 @@ class BlogPostTest extends SapphireTest
$archiveLink = $blogPost->getYearlyArchiveLink(); $archiveLink = $blogPost->getYearlyArchiveLink();
$this->assertContains('archive/', $archiveLink); $this->assertContains('archive/', $archiveLink);
$this->assertContains('/2013', $archiveLink); $this->assertStringEndsWith('/2013', $archiveLink);
} }
} }