GraphQL\Tests\Type\DefinitionTest::testIncludesNestedInputObjectInTheMap PHP Method

testIncludesNestedInputObjectInTheMap() public method

    public function testIncludesNestedInputObjectInTheMap()
    {
        $nestedInputObject = new InputObjectType(['name' => 'NestedInputObject', 'fields' => ['value' => ['type' => Type::string()]]]);
        $someInputObject = new InputObjectType(['name' => 'SomeInputObject', 'fields' => ['nested' => ['type' => $nestedInputObject]]]);
        $someMutation = new ObjectType(['name' => 'SomeMutation', 'fields' => ['mutateSomething' => ['type' => $this->blogArticle, 'args' => ['input' => ['type' => $someInputObject]]]]]);
        $schema = new Schema(['query' => $this->blogQuery, 'mutation' => $someMutation]);
        $this->assertSame($nestedInputObject, $schema->getType('NestedInputObject'));
    }