mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Switch assertions to test the end of the strings
This commit is contained in:
parent
967a2be14e
commit
108ac1388b
@ -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
Block a user