Skip to content

Commit 8a0c1cc

Browse files
committed
chore: fix tests for mock updates
1 parent 74a7d7b commit 8a0c1cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Google/ServiceTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use Prophecy\Argument;
2929
use Psr\Http\Message\RequestInterface;
3030
use Psr\Http\Message\ResponseInterface;
31+
use Psr\Http\Message\StreamInterface;
3132

3233
class TestModel extends Model
3334
{
@@ -66,7 +67,13 @@ class ServiceTest extends TestCase
6667

6768
public function testCreateBatch()
6869
{
70+
$body = $this->prophesize(StreamInterface::class);
71+
$body->__toString()->willReturn('');
6972
$response = $this->prophesize(ResponseInterface::class);
73+
$response->getHeaderLine('content-type')
74+
->willReturn('');
75+
$response->getBody()
76+
->willReturn($body->reveal());
7077
$client = $this->prophesize(Client::class);
7178

7279
$client->execute(

0 commit comments

Comments
 (0)