GraphQL\Tests\Type\SchemaValidatorTest::expectToAcceptSchemaWithNormalInputArg PHP Метод

expectToAcceptSchemaWithNormalInputArg() приватный Метод

    private function expectToAcceptSchemaWithNormalInputArg($rule)
    {
        $someOutputType = new ObjectType(['name' => 'SomeOutputType', 'fields' => ['fieldWithArg' => ['args' => ['someArg' => ['type' => $this->someInputObjectType]], 'type' => Type::float()]]]);
        $schema = new Schema(['query' => $someOutputType]);
        $errors = SchemaValidator::validate($schema, [$rule]);
        $this->assertEmpty($errors);
    }
SchemaValidatorTest