Skip to content

Commit

Permalink
chore: fix tests for mock updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed May 11, 2023
1 parent 74a7d7b commit 8a0c1cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Google/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Prophecy\Argument;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;

class TestModel extends Model
{
Expand Down Expand Up @@ -66,7 +67,13 @@ class ServiceTest extends TestCase

public function testCreateBatch()
{
$body = $this->prophesize(StreamInterface::class);
$body->__toString()->willReturn('');
$response = $this->prophesize(ResponseInterface::class);
$response->getHeaderLine('content-type')
->willReturn('');
$response->getBody()
->willReturn($body->reveal());
$client = $this->prophesize(Client::class);

$client->execute(
Expand Down

0 comments on commit 8a0c1cc

Please sign in to comment.