tests/Repo/RepoFacadeFactoryTest.php 1 location
|
@@ 25-32 (lines=8) @@
|
| 22 |
|
/** |
| 23 |
|
* @return \DevBoardLib\GithubCore\Repo\GithubRepo |
| 24 |
|
*/ |
| 25 |
|
private function provideTestRepo() |
| 26 |
|
{ |
| 27 |
|
$githubRepo = m::mock('DevBoardLib\GithubCore\Repo\GithubRepo'); |
| 28 |
|
$githubRepo->shouldReceive('getOwner')->andReturn('devboard'); |
| 29 |
|
$githubRepo->shouldReceive('getName')->andReturn('test-hitman'); |
| 30 |
|
|
| 31 |
|
return $githubRepo; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @return \DevBoardLib\GithubApiFacade\Auth\GithubAccessToken |
tests/Repo/PaginatedKnpLabsRepoFacadeTest.php 1 location
|
@@ 159-167 (lines=9) @@
|
| 156 |
|
/** |
| 157 |
|
* @return \DevBoardLib\GithubCore\Repo\GithubRepo |
| 158 |
|
*/ |
| 159 |
|
private function provideTestRepo() |
| 160 |
|
{ |
| 161 |
|
$githubRepo = m::mock('DevBoardLib\GithubCore\Repo\GithubRepo'); |
| 162 |
|
$githubRepo->shouldReceive('getOwner')->andReturn('devboard'); |
| 163 |
|
$githubRepo->shouldReceive('getName')->andReturn('test-hitman'); |
| 164 |
|
$githubRepo->shouldReceive('getFullName')->andReturn('devboard/test-hitman'); |
| 165 |
|
|
| 166 |
|
return $githubRepo; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
/** |
| 170 |
|
* @return \DevBoardLib\GithubApiFacade\Auth\GithubAccessToken |