Skip to content

Commit 8213cb8

Browse files
authored
fix tests (googleapis#1560)
1 parent baf254f commit 8213cb8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Google/ClientTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ public function testRefreshTokenSetsValues()
445445
->will($this->returnValue($token));
446446
if ($this->isGuzzle5()) {
447447
$response = $this->getMock('GuzzleHttp\Message\ResponseInterface');
448+
$response->expects($this->once())
449+
->method('getStatusCode')
450+
->will($this->returnValue(200));
448451
} else {
449452
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
450453
}
@@ -486,6 +489,9 @@ public function testRefreshTokenIsSetOnRefresh()
486489
->will($this->returnValue($token));
487490
if ($this->isGuzzle5()) {
488491
$response = $this->getMock('GuzzleHttp\Message\ResponseInterface');
492+
$response->expects($this->once())
493+
->method('getStatusCode')
494+
->will($this->returnValue(200));
489495
} else {
490496
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
491497
}
@@ -528,6 +534,9 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned()
528534
->will($this->returnValue($token));
529535
if ($this->isGuzzle5()) {
530536
$response = $this->getMock('GuzzleHttp\Message\ResponseInterface');
537+
$response->expects($this->once())
538+
->method('getStatusCode')
539+
->will($this->returnValue(200));
531540
} else {
532541
$response = $this->getMock('Psr\Http\Message\ResponseInterface');
533542
}

0 commit comments

Comments
 (0)