GraphQL\Tests\Type\SchemaValidatorTest::testAcceptsSchemaWithQueryAndMutationTypesOfObjectType PHP Méthode

testAcceptsSchemaWithQueryAndMutationTypesOfObjectType() public méthode

    public function testAcceptsSchemaWithQueryAndMutationTypesOfObjectType()
    {
        $MutationType = new ObjectType(['name' => 'Mutation', 'fields' => ['edit' => ['type' => Type::string()]]]);
        $this->expectPasses(['query' => $this->someObjectType, 'mutation' => $MutationType]);
    }
SchemaValidatorTest