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

testAcceptsAnObjectTypeWithFieldFunction() публичный Метод

    public function testAcceptsAnObjectTypeWithFieldFunction()
    {
        $schemaConfig = $this->schemaWithFieldType(new ObjectType(['name' => 'SomeObject', 'fields' => function () {
            return ['f' => ['type' => Type::string()]];
        }]));
        $this->expectPasses($schemaConfig);
    }
SchemaValidatorTest