GraphQL\Tests\Validator\ArgumentsOfCorrectTypeTest::testIncorrectItemtype PHP 메소드

testIncorrectItemtype() 공개 메소드

    public function testIncorrectItemtype()
    {
        $this->expectFailsRule(new ArgumentsOfCorrectType(), '
        {
          complicatedArgs {
            stringListArgField(stringListArg: ["one", 2])
          }
        }
        ', [$this->badValue('stringListArg', '[String]', '["one", 2]', 4, 47, ['In element #1: Expected type "String", found 2.'])]);
    }
ArgumentsOfCorrectTypeTest