Skip to content

Commit

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

}

0 comments on commit 3474c6d

Please sign in to comment.