silverstripe-blog/tests/Widgets/BlogArchiveWidgetTest.yml

28 lines
768 B
YAML
Raw Normal View History

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