GraphQL\Tests\Executor\LazyInterfaceTest::testReturnsFragmentsWithLazyCreatedInterface PHP Method

testReturnsFragmentsWithLazyCreatedInterface() public method

Handles execution of a lazily created interface
    public function testReturnsFragmentsWithLazyCreatedInterface()
    {
        $request = '
        {
            lazyInterface {
                ... on TestObject {
                    name
                }
            }
        }
        ';
        $expected = ['data' => ['lazyInterface' => ['name' => 'testname']]];
        $this->assertEquals($expected, Executor::execute($this->schema, Parser::parse($request))->toArray());
    }