From c60cc216502a0b225fe52007067bd738017f7be4 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sun, 2 Sep 2018 13:45:20 +0200 Subject: [PATCH] FIX GraphQL test warnings when they do not assert anything --- test/Github/Tests/Api/GraphQLTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Github/Tests/Api/GraphQLTest.php b/test/Github/Tests/Api/GraphQLTest.php index 5faea997d3b..042cb014a50 100644 --- a/test/Github/Tests/Api/GraphQLTest.php +++ b/test/Github/Tests/Api/GraphQLTest.php @@ -27,7 +27,8 @@ public function shouldSupportGraphQLVariables() { $api = $this->getApiMock(); - $api->method('post') + $api->expects($this->once()) + ->method('post') ->with('/graphql', $this->arrayHasKey('variables')); $api->execute('bar', ['variable' => 'foo']); @@ -40,7 +41,8 @@ public function shouldJSONEncodeGraphQLVariables() { $api = $this->getApiMock(); - $api->method('post') + $api->expects($this->once()) + ->method('post') ->with('/graphql', $this->equalTo([ 'query'=>'bar', 'variables' => '{"variable":"foo"}',