@@ -12,8 +12,6 @@ |
||
12 | 12 | use Youshido\GraphQL\Schema\AbstractSchema; |
13 | 13 | use Youshido\GraphQL\Type\ListType\ListType; |
14 | 14 | use Youshido\GraphQL\Type\Object\AbstractObjectType; |
15 | -use Youshido\GraphQL\Type\Object\ObjectType; |
|
16 | -use Youshido\GraphQL\Type\TypeMap; |
|
17 | 15 | |
18 | 16 | class SchemaType extends AbstractObjectType |
19 | 17 | { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | |
12 | 12 | use Youshido\GraphQL\Execution\Processor; |
13 | -use Youshido\GraphQL\Parser\Ast\ArgumentValue\InputObject; |
|
14 | 13 | use Youshido\GraphQL\Schema\Schema; |
15 | 14 | use Youshido\GraphQL\Type\InputObject\InputObjectType; |
16 | 15 | use Youshido\GraphQL\Type\ListType\ListType; |
@@ -87,14 +87,14 @@ discard block |
||
87 | 87 | [ |
88 | 88 | 'data' => ['createList' => null], |
89 | 89 | 'errors' => [[ |
90 | - 'message' => 'Not valid type for argument "posts" in query "createList"', |
|
91 | - 'locations' => [ |
|
92 | - [ |
|
93 | - 'line' => 1, |
|
94 | - 'column' => 23 |
|
95 | - ] |
|
96 | - ] |
|
97 | - ]] |
|
90 | + 'message' => 'Not valid type for argument "posts" in query "createList"', |
|
91 | + 'locations' => [ |
|
92 | + [ |
|
93 | + 'line' => 1, |
|
94 | + 'column' => 23 |
|
95 | + ] |
|
96 | + ] |
|
97 | + ]] |
|
98 | 98 | ], |
99 | 99 | $processor->getResponseData() |
100 | 100 | ); |
@@ -185,14 +185,14 @@ discard block |
||
185 | 185 | $this->assertEquals([ |
186 | 186 | 'data' => ['createList' => null], |
187 | 187 | 'errors' => [[ |
188 | - 'message' => 'Not valid type for argument "topArgument" in query "createList"', |
|
189 | - 'locations' => [ |
|
190 | - [ |
|
191 | - 'line' => 1, |
|
192 | - 'column' => 23 |
|
193 | - ] |
|
194 | - ] |
|
195 | - ]], |
|
188 | + 'message' => 'Not valid type for argument "topArgument" in query "createList"', |
|
189 | + 'locations' => [ |
|
190 | + [ |
|
191 | + 'line' => 1, |
|
192 | + 'column' => 23 |
|
193 | + ] |
|
194 | + ] |
|
195 | + ]], |
|
196 | 196 | ], $processor->getResponseData()); |
197 | 197 | $processor->getExecutionContext()->clearErrors(); |
198 | 198 | $processor->processPayload('mutation { createList(topArgument:{ |