PHP Class GraphQL\Tests\Executor\LazyInterfaceTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: webonyx/graphql-php

Protected Properties

Property Type Description
$lazyInterface GraphQL\Type\Definition\InterfaceType
$schema GraphQL\Schema
$testObject GraphQL\Type\Definition\ObjectType

Public Methods

Method Description
testReturnsFragmentsWithLazyCreatedInterface ( ) Handles execution of a lazily created interface

Protected Methods

Method Description
getLazyInterfaceType ( ) : InterfaceType Returns the LazyInterface
getTestObjectType ( ) : ObjectType Returns the test ObjectType
setUp ( ) Setup schema

Method Details

getLazyInterfaceType() protected method

Returns the LazyInterface
protected getLazyInterfaceType ( ) : InterfaceType
return GraphQL\Type\Definition\InterfaceType

getTestObjectType() protected method

Returns the test ObjectType
protected getTestObjectType ( ) : ObjectType
return GraphQL\Type\Definition\ObjectType

setUp() protected method

Setup schema
protected setUp ( )

testReturnsFragmentsWithLazyCreatedInterface() public method

Handles execution of a lazily created interface

Property Details

$lazyInterface protected property

protected InterfaceType,GraphQL\Type\Definition $lazyInterface
return GraphQL\Type\Definition\InterfaceType

$schema protected property

protected Schema,GraphQL $schema
return GraphQL\Schema

$testObject protected property

protected ObjectType,GraphQL\Type\Definition $testObject
return GraphQL\Type\Definition\ObjectType