Fixing broken test

1.0
Ben Ramsey 2015-02-24 12:14:31 -06:00
parent 5e500e44c6
commit 7a0741c7df
1 changed files with 3 additions and 4 deletions

View File

@ -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']);