diff --git a/Tests/Schema/SchemaTest.php b/Tests/Schema/SchemaTest.php index c1fe7c01..d758b7ba 100644 --- a/Tests/Schema/SchemaTest.php +++ b/Tests/Schema/SchemaTest.php @@ -136,6 +136,12 @@ public function testCustomTypes() $result = $processor->getResponseData(); $this->assertEquals(['errors' => [ ['message' => 'Unexpected token "RBRACE" at (1:19)']]], $result); + $processor->getExecutionContext()->clearErrors(); + + $processor->processPayload('{ user { name { invalidSelection } } }'); + $result = $processor->getResponseData(); + + $this->assertEquals(['data' => ['user' => null], 'errors' => [ ['message' => 'You can\'t specify fields for scalar type "String"']]], $result); } }