Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 4420534

Browse files
committed
Fix: GitHub API response
1 parent 95e264c commit 4420534

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

module/Application/test/ApplicationTest/Service/RepositoryRetrieverTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,17 +566,21 @@ public function testGetContributorsReturnsFalseIfRuntimeExceptionIsThrown()
566566
}
567567

568568
/**
569-
* @link https://developer.github.com/v3/repos/#response-5
569+
* @link https://developer.github.com/v3/repos/statistics/#response
570570
*
571571
* @return stdClass
572572
*/
573573
private function contributor()
574574
{
575+
$author = new stdClass();
576+
577+
$author->login = $this->faker()->unique()->userName;
578+
$author->avatar_url = $this->faker()->unique()->url;
579+
$author->html_url = $this->faker()->unique()->url;
580+
575581
$contributor = new stdClass();
576582

577-
$contributor->login = $this->faker()->unique()->userName;
578-
$contributor->avatar_url = $this->faker()->unique()->url;
579-
$contributor->html_url = $this->faker()->unique()->url;
583+
$contributor->author = $author;
580584

581585
return $contributor;
582586
}

0 commit comments

Comments
 (0)