| 1 | <?php |
||
| 7 | * Copyright (c) 2015–2018 Contributors. |
||
| 8 | * |
||
| 9 | * http://opensource.org/licenses/MIT |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Youshido\Tests\Issues\Issue109; |
||
| 15 | |||
| 16 | use Youshido\GraphQL\Execution\Processor; |
||
| 17 | |||
| 18 | class Issue109Test extends \PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | public function testInternalVariableArgument(): void |
||
| 21 | { |
||
| 22 | $schema = new Issue109Schema(); |
||
| 23 | $processor = new Processor($schema); |
||
| 24 | $response = $processor->processPayload( |
||
| 25 | ' |
||
| 26 | query ($postId: Int, $commentId: Int) { |
||
| 27 | latestPost(id: $postId) { |
||
| 28 | id(comment_id: $commentId), |
||
| 29 | comments(comment_id: $commentId) { |
||
| 30 | comment_id |
||
| 31 | } |
||
| 32 | } |
||
| 33 | }', |
||
| 34 | [ |
||
| 35 | 'postId' => 1, |
||
| 47 |