spec/Repo/Issue/Converter/GithubIssueConverterSpec.php 1 location
|
@@ 207-213 (lines=7) @@
|
| 204 |
|
/** |
| 205 |
|
* @dataProvider provideAllIssues |
| 206 |
|
*/ |
| 207 |
|
public function it_will_have_github_created_datetime_in_converted_result($arrayData) |
| 208 |
|
{ |
| 209 |
|
$result = $this->convert($arrayData); |
| 210 |
|
|
| 211 |
|
$result->getGithubCreatedAt()->shouldBeAnInstanceOf('DateTime'); |
| 212 |
|
$result->getGithubCreatedAt()->format('Y-m-d\TH:i:s\Z')->shouldBe($arrayData['created_at']); |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
/** |
| 216 |
|
* @dataProvider provideAllIssues |
spec/Repo/Milestone/Converter/GithubMilestoneConverterSpec.php 1 location
|
@@ 210-216 (lines=7) @@
|
| 207 |
|
/** |
| 208 |
|
* @dataProvider provideAllMilestones |
| 209 |
|
*/ |
| 210 |
|
public function it_will_have_github_created_datetime_in_converted_result($arrayData) |
| 211 |
|
{ |
| 212 |
|
$result = $this->convert($arrayData); |
| 213 |
|
|
| 214 |
|
$result->getGithubCreatedAt()->shouldBeAnInstanceOf('DateTime'); |
| 215 |
|
$result->getGithubCreatedAt()->format('Y-m-d\TH:i:s\Z')->shouldBe($arrayData['created_at']); |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
/** |
| 219 |
|
* @dataProvider provideAllMilestones |