Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testInternalVariableArgument() |
||
11 | { |
||
12 | $schema = new Issue109Schema(); |
||
13 | $processor = new Processor($schema); |
||
14 | $response = $processor->processPayload(' |
||
15 | query ($postId: Int, $commentId: Int) { |
||
16 | latestPost(id: $postId) { |
||
17 | id(comment_id: $commentId), |
||
18 | comments(comment_id: $commentId) { |
||
19 | comment_id |
||
20 | } |
||
21 | } |
||
22 | }', |
||
23 | [ |
||
24 | 'postId' => 1, |
||
25 | 'commentId' => 100 |
||
26 | ])->getResponseData(); |
||
27 | $this->assertEquals(['data' => ['latestPost' => [ |
||
28 | 'id' => 1, |
||
29 | 'comments' => [ |
||
30 | ['comment_id' => 100] |
||
31 | ] |
||
32 | ]]], $response); |
||
33 | } |
||
34 | } |
||
35 |