public function testStringOverBoolean()
{
$this->expectFailsRule(new VariablesInAllowedPosition(), '
query Query($stringVar: String) {
complicatedArgs {
booleanArgField(booleanArg: $stringVar)
}
}
', [FormattedError::create(VariablesInAllowedPosition::badVarPosMessage('stringVar', 'String', 'Boolean'), [new SourceLocation(2, 19), new SourceLocation(4, 39)])]);
}