silverstripe-blog/tests/Widgets/BlogArchiveWidgetTest.yml
2017-09-27 11:48:41 +13:00

28 lines
768 B
YAML

SilverStripe\Blog\Model\Blog:
my-blog:
Title: My Blog
SilverStripe\Blog\Model\BlogPost:
post-a:
Title: September Digest
PublishDate: 2017-09-01 00:00:00
ParentID: =>SilverStripe\Blog\Model\Blog.my-blog
post-b:
Title: August is Awesome
PublishDate: 2017-08-01 00:00:00
ParentID: =>SilverStripe\Blog\Model\Blog.my-blog
post-c:
Title: 2015 is so two years ago
PublishDate: 2015-05-02 00:01:02
ParentID: =>SilverStripe\Blog\Model\Blog.my-blog
SilverStripe\Blog\Widgets\BlogArchiveWidget:
archive-monthly:
NumberToDisplay: 5
ArchiveType: Monthly
BlogID: =>SilverStripe\Blog\Model\Blog.my-blog
archive-yearly:
NumberToDisplay: 5
ArchiveType: Yearly
BlogID: =>SilverStripe\Blog\Model\Blog.my-blog