| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function testCreateTokenAuthenticatedClient() |
||
| 13 | { |
||
| 14 | $target = new KnpLabsClientFactory(); |
||
| 15 | |||
| 16 | $user = m::mock('DevBoardLib\GithubApiFacade\Auth\GithubAccessToken'); |
||
| 17 | $user->shouldReceive('getGithubAccessToken')->once()->andReturn('access-token'); |
||
| 18 | |||
| 19 | $result = $target->createTokenAuthenticatedClient($user); |
||
| 20 | |||
| 21 | self::assertInstanceOf('Github\Client', $result); |
||
| 22 | } |
||
| 23 | |||
| 33 |