Skip to content

Commit 5ec1da2

Browse files
committed
Fix broken tests for ProcessGraphQL#getRequest method.
1 parent e644ef8 commit 5ec1da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ProcessGraphQLTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public function testGetRequestForPost()
4848
$this->assertNull($request['variables']);
4949

5050
// variables could be set via $_POST['variables']
51-
$variables = 'variables in $_POST["variablses"]';
51+
$variables = '{ one: 1, two: "two" }';
5252
$_POST['variables'] = $variables;
5353
$request = Utils::module()->getRequest();
54-
$this->assertEquals($variables, $request['variables']);
54+
$this->assertEquals(json_decode($variables), $request['variables'], 'variables in $_POST["variables"]');
5555
}
5656

5757
public function testGetRequestForPhpInput()

0 commit comments

Comments
 (0)