SilverStripe\Blog\Tests\BlogPostTest
Synopsis
class BlogPostTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'blog.yml';
- // methods
- protected void tearDown()
- public void testCanView()
- public array canViewProvider()
- public void testCandidateAuthors()
- public void testCanViewFuturePost()
- public void testGetDate()
- public void testMinutesToRead()
- public void testGetMonthlyArchiveLink()
- public array monthlyArchiveLinkProvider()
- public void testGetYearlyArchiveLink()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
protected
public
- canViewProvider()
- monthlyArchiveLinkProvider()
- testCanView()
- testCanViewFuturePost()
- testCandidateAuthors()
- testGetDate() — The purpose of getDate() is to act as a proxy for PublishDate in the default RSS template, rather than copying the entire template.
- testGetMonthlyArchiveLink()
- testGetYearlyArchiveLink()
- testMinutesToRead()