Skip to content

Commit

Permalink
added test to cover undefined fragment and close
Browse files Browse the repository at this point in the history
  • Loading branch information
viniychuk committed Nov 9, 2016
1 parent 7c40b02 commit 705f908
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Tests/Schema/VariablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ public function queries()
'sort' => null
]
],
[
'query queryWithVariable($abc:String) {
stringQuery {
...someFragment
}
}',
[
'errors' => [
['message' => 'Fragment "someFragment" not defined in query']
],
],
[
'abc' => null
]
],
];
}

Expand Down

0 comments on commit 705f908

Please sign in to comment.