Skip to content

Commit 399e94d

Browse files
committed
Fix tests
1 parent 20ac30a commit 399e94d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/Package/GraphqlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testCreate()
6262

6363
$this->client->expects($this->once())
6464
->method('post')
65-
->with('/graphql', $data, $headers)
65+
->with('/graphql', json_encode($data), $headers)
6666
->will($this->returnValue($this->response));
6767

6868
$this->assertThat(
@@ -99,7 +99,7 @@ public function testCreateFailure()
9999

100100
$this->client->expects($this->once())
101101
->method('post')
102-
->with('/graphql', $data, $headers)
102+
->with('/graphql', json_encode($data), $headers)
103103
->will($this->returnValue($this->response));
104104

105105
try

0 commit comments

Comments
 (0)