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 967a2be14e
commit 108ac1388b

View File

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