public function testPartialObjectInvalidFieldType()
{
$this->expectFailsRule(new ArgumentsOfCorrectType(), '
{
complicatedArgs {
complexArgField(complexArg: {
stringListField: ["one", 2],
requiredField: true,
})
}
}
', [$this->badValue('complexArg', 'ComplexInput', '{stringListField: ["one", 2], requiredField: true}', 4, 41, ['In field "stringListField": In element #1: Expected type "String", found 2.'])]);
}