Fixing broken test
parent
5e500e44c6
commit
7a0741c7df
|
@ -114,12 +114,11 @@ class GithubTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
public function testGithubDomainUrls()
|
||||
{
|
||||
$client = m::mock('Guzzle\Service\Client');
|
||||
$response = m::mock('Guzzle\Http\Message\Response');
|
||||
$client = m::mock('GuzzleHttp\Client');
|
||||
$response = m::mock('GuzzleHttp\Message\Response');
|
||||
$response->shouldReceive('getBody')->times(1)->andReturn('access_token=mock_access_token&expires=3600&refresh_token=mock_refresh_token&otherKey={1234}');
|
||||
|
||||
$client->shouldReceive('setBaseUrl')->times(1);
|
||||
$client->shouldReceive('post->send')->times(1)->andReturn($response);
|
||||
$client->shouldReceive('post')->times(1)->andReturn($response);
|
||||
$this->provider->setHttpClient($client);
|
||||
$token = $this->provider->getAccessToken('authorization_code', ['code' => 'mock_authorization_code']);
|
||||
|
||||
|
|
Loading…
Reference in New Issue