GraphQL\Tests\Type\SchemaValidatorTest::schemaWithFieldArgOfType PHP Method

schemaWithFieldArgOfType() private method

private schemaWithFieldArgOfType ( $argType )
    private function schemaWithFieldArgOfType($argType)
    {
        $someIncorrectInputType = new InputObjectType(['name' => 'SomeIncorrectInputType', 'fields' => function () use($argType) {
            return ['val' => ['type' => $argType]];
        }]);
        $queryType = new ObjectType(['name' => 'QueryType', 'fields' => ['f2' => ['type' => Type::float(), 'args' => ['arg' => ['type' => $someIncorrectInputType]]]]]);
        return new Schema(['query' => $queryType]);
    }
SchemaValidatorTest