From 1b7857bed6c4fb783a47ec332768eb97b28ebc1c Mon Sep 17 00:00:00 2001 From: Alexandr Viniychuk Date: Tue, 8 Nov 2016 21:49:47 -0500 Subject: [PATCH] test to cover fixed https://github.com/Youshido/GraphQL/issues/70 --- Tests/Schema/SchemaTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/Schema/SchemaTest.php b/Tests/Schema/SchemaTest.php index 426f2234..c1fe7c01 100644 --- a/Tests/Schema/SchemaTest.php +++ b/Tests/Schema/SchemaTest.php @@ -131,6 +131,11 @@ public function testCustomTypes() }'); $data = $processor->getResponseData(); $this->assertArraySubset([11 => ['name' => 'Author']], $data['data']['__schema']['types']); + + $processor->processPayload('{ user { name { } } }'); + $result = $processor->getResponseData(); + + $this->assertEquals(['errors' => [ ['message' => 'Unexpected token "RBRACE" at (1:19)']]], $result); } }