Switch assertions to test the end of the strings
This commit is contained in:
parent
14283d88b8
commit
c134ce44c1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue