public function testStringXListOfString()
{
$this->expectFailsRule(new VariablesInAllowedPosition(), '
query Query($stringVar: String) {
complicatedArgs {
stringListArgField(stringListArg: $stringVar)
}
}
', [FormattedError::create(VariablesInAllowedPosition::badVarPosMessage('stringVar', 'String', '[String]'), [new SourceLocation(2, 19), new SourceLocation(4, 45)])]);
}