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
14283d88b8
commit
c134ce44c1
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user