silverstripe-blog/tests/php/Widgets/BlogArchiveWidgetTest.yml

46 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2017-09-27 00:48:41 +02:00
SilverStripe\Blog\Model\Blog:
blog-a:
Title: Blog A
blog-b:
Title: Blog B
2017-09-26 05:15:57 +02:00
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
ParentID: =>SilverStripe\Blog\Model\Blog.blog-a
2017-09-26 05:15:57 +02:00
post-b:
Title: August is Awesome
PublishDate: 2017-08-01 00:00:00
ParentID: =>SilverStripe\Blog\Model\Blog.blog-a
2017-09-26 05:15:57 +02:00
post-c:
Title: 2015 is so two years ago
PublishDate: 2015-05-02 00:01:02
ParentID: =>SilverStripe\Blog\Model\Blog.blog-a
post-d:
Title: Blog post on Blog B
PublishDate: 2016-03-13 21:05:36
ParentID: =>SilverStripe\Blog\Model\Blog.blog-b
post-e:
Title: Blog post 2 on Blog B
PublishDate: 2016-06-15 10:00:00
ParentID: =>SilverStripe\Blog\Model\Blog.blog-b
2017-09-26 05:15:57 +02:00
2017-09-27 00:48:41 +02:00
SilverStripe\Blog\Widgets\BlogArchiveWidget:
archive-monthly-a:
2017-09-26 05:15:57 +02:00
NumberToDisplay: 5
ArchiveType: Monthly
BlogID: =>SilverStripe\Blog\Model\Blog.blog-a
archive-monthly-b:
NumberToDisplay: 5
ArchiveType: Monthly
BlogID: =>SilverStripe\Blog\Model\Blog.blog-b
archive-yearly-a:
NumberToDisplay: 5
ArchiveType: Yearly
BlogID: =>SilverStripe\Blog\Model\Blog.blog-a
archive-yearly-b:
2017-09-26 05:15:57 +02:00
NumberToDisplay: 5
ArchiveType: Yearly
BlogID: =>SilverStripe\Blog\Model\Blog.blog-b