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