Skip to content

Commit

Permalink
test to cover fixed #70
Browse files Browse the repository at this point in the history
  • Loading branch information
viniychuk committed Nov 9, 2016
1 parent d981467 commit 1b7857b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/Schema/SchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 1b7857b

Please sign in to comment.