public function testMultipleVariablesNotUsed2()
{
$this->expectFailsRule(new NoUnusedVariables(), '
query Foo($a: String, $b: String, $c: String) {
...FragA
}
fragment FragA on Type {
field {
...FragB
}
}
fragment FragB on Type {
field(b: $b) {
...FragC
}
}
fragment FragC on Type {
field
}
', [$this->unusedVar('a', 'Foo', 2, 17), $this->unusedVar('c', 'Foo', 2, 41)]);
}