@@ 156-164 (lines=9) @@ | ||
153 | * @dataProvider monthlyArchiveLinkProvider |
|
154 | * @group wip |
|
155 | */ |
|
156 | public function testGetMonthlyArchiveLink($type, $expected) |
|
157 | { |
|
158 | /** @var BlogPost $blogPost */ |
|
159 | $blogPost = $this->objFromFixture(BlogPost::class, 'FirstBlogPost'); |
|
160 | ||
161 | $archiveLink = $blogPost->getMonthlyArchiveLink($type); |
|
162 | $this->assertContains('archive/', $archiveLink); |
|
163 | $this->assertStringEndsWith($expected, $archiveLink); |
|
164 | } |
|
165 | ||
166 | /** |
|
167 | * @return array[] |
|
@@ 178-186 (lines=9) @@ | ||
175 | ]; |
|
176 | } |
|
177 | ||
178 | public function testGetYearlyArchiveLink() |
|
179 | { |
|
180 | /** @var BlogPost $blogPost */ |
|
181 | $blogPost = $this->objFromFixture(BlogPost::class, 'FirstBlogPost'); |
|
182 | ||
183 | $archiveLink = $blogPost->getYearlyArchiveLink(); |
|
184 | $this->assertContains('archive/', $archiveLink); |
|
185 | $this->assertStringEndsWith('/2013', $archiveLink); |
|
186 | } |
|
187 | } |
|
188 |