SilverStripe\Blog\Tests\BlogTagTest
Synopsis
class BlogTagTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'blog.yml';
- // methods
- protected void setUp()
- protected void tearDown()
- public void testBlogPosts()
- public void testAllowMultibyteUrlSegment()
- public void testCanView()
- public void testCanEdit()
- public void testCanCreate()
- public void testCanDelete()
- public void testDuplicateTagsForURLSegment()
- public void testDuplicateTags()
- public void testBlogTagUrlSegmentsAreAutomaticallyUpdated()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $fixture_file
Methods
protected
public
- testAllowMultibyteUrlSegment()
- testBlogPosts() — Tests that any blog posts returned from $tag->BlogPosts() many_many are published, both by normal 'save & publish' functionality and by publish date.
- testBlogTagUrlSegmentsAreAutomaticallyUpdated()
- testCanCreate()
- testCanDelete()
- testCanEdit()
- testCanView() — The first blog can be viewed by anybody.
- testDuplicateTags()
- testDuplicateTagsForURLSegment()