public function testSingleVariableInFragmentNotDefinedByMultipleOperations()
{
$this->expectFailsRule(new NoUndefinedVariables(), '
query Foo($a: String) {
...FragAB
}
query Bar($a: String) {
...FragAB
}
fragment FragAB on Type {
field(a: $a, b: $b)
}
', [$this->undefVar('b', 9, 25, 'Foo', 2, 7), $this->undefVar('b', 9, 25, 'Bar', 5, 7)]);
}