diff --git a/tests/Google/ClientTest.php b/tests/Google/ClientTest.php index 38d964bfa..c6a1fe242 100644 --- a/tests/Google/ClientTest.php +++ b/tests/Google/ClientTest.php @@ -445,6 +445,9 @@ public function testRefreshTokenSetsValues() ->will($this->returnValue($token)); if ($this->isGuzzle5()) { $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getStatusCode') + ->will($this->returnValue(200)); } else { $response = $this->getMock('Psr\Http\Message\ResponseInterface'); } @@ -486,6 +489,9 @@ public function testRefreshTokenIsSetOnRefresh() ->will($this->returnValue($token)); if ($this->isGuzzle5()) { $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getStatusCode') + ->will($this->returnValue(200)); } else { $response = $this->getMock('Psr\Http\Message\ResponseInterface'); } @@ -528,6 +534,9 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned() ->will($this->returnValue($token)); if ($this->isGuzzle5()) { $response = $this->getMock('GuzzleHttp\Message\ResponseInterface'); + $response->expects($this->once()) + ->method('getStatusCode') + ->will($this->returnValue(200)); } else { $response = $this->getMock('Psr\Http\Message\ResponseInterface'); }