SilverStripe\Blog\Tests\BlogCategoryTest
Synopsis
class BlogCategoryTest
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 testDuplicateCategories()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $fixture_file — string
Methods
protected
- setUp() — {@inheritdoc}
- tearDown() — {@inheritdoc}
public
- testAllowMultibyteUrlSegment()
- testBlogPosts() — Tests that any blog posts returned from $category->BlogPosts() many_many are published, both by normal 'save & publish' functionality and by publish date.
- testCanCreate()
- testCanDelete()
- testCanEdit() — The first blog can be viewed by anybody.
- testCanView()
- testDuplicateCategories()