spec/Repo/Issue/Converter/GithubIssueConverterSpec.php 1 location
|
@@ 229-235 (lines=7) @@
|
| 226 |
|
/** |
| 227 |
|
* @dataProvider provideClosedIssues |
| 228 |
|
*/ |
| 229 |
|
public function it_will_have_github_closed_datetime_for_closed_milestones_in_converted_result($arrayData) |
| 230 |
|
{ |
| 231 |
|
$result = $this->convert($arrayData); |
| 232 |
|
|
| 233 |
|
$result->getGithubClosedAt()->shouldBeAnInstanceOf('DateTime'); |
| 234 |
|
$result->getGithubClosedAt()->format('Y-m-d\TH:i:s\Z')->shouldBe($arrayData['closed_at']); |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
public function provideAllIssues() |
| 238 |
|
{ |
spec/Repo/Milestone/Converter/GithubMilestoneConverterSpec.php 1 location
|
@@ 212-218 (lines=7) @@
|
| 209 |
|
/** |
| 210 |
|
* @dataProvider provideClosedMilestones |
| 211 |
|
*/ |
| 212 |
|
public function it_will_have_github_closed_datetime_for_closed_milestones_in_converted_result($arrayData) |
| 213 |
|
{ |
| 214 |
|
$result = $this->convert($arrayData); |
| 215 |
|
|
| 216 |
|
$result->getGithubClosedAt()->shouldBeAnInstanceOf('DateTime'); |
| 217 |
|
$result->getGithubClosedAt()->format('Y-m-d\TH:i:s\Z')->shouldBe($arrayData['closed_at']); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
/** |
| 221 |
|
* @dataProvider provideOpenMilestones |