PHP Class GraphQL\Tests\Executor\ExecutorTest

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

Public Methods

Method Description
tearDown ( )
testAvoidsRecursion ( )
testCorrectFieldOrderingDespiteExecutionOrder ( )
testCorrectlyThreadsArguments ( )
testDoesNotIncludeArgumentsThatWereNotSet ( )
testDoesNotIncludeIllegalFieldsInOutput ( )
testExecutesArbitraryCode ( )
testFailsToExecuteQueryContainingTypeDefinition ( )
testFailsWhenAnIsTypeOfCheckIsNotMet ( )
testMergesParallelFragments ( )
testNullsOutErrorSubtrees ( )
testProvidesInfoAboutCurrentExecutionState ( )
testSerializesToEmptyObjectVsEmptyArray ( )
testSubstitutesArgumentWithDefaultValue ( )
testThreadsContextCorrectly ( )
testThrowsIfNoOperationIsProvided ( )
testThrowsIfNoOperationIsProvidedWithMultipleOperations ( )
testThrowsIfUnknownOperationNameIsProvided ( )
testUsesTheInlineOperationIfNoOperationIsProvided ( )
testUsesTheMutationSchemaForMutations ( )
testUsesTheNamedOperationIfOperationNameIsProvided ( )
testUsesTheOnlyOperationIfNoOperationIsProvided ( )
testUsesTheQuerySchemaForQueries ( )
testUsesTheSubscriptionSchemaForSubscriptions ( )

Private Methods

Method Description
awaitPromise ( GraphQL\Executor\Promise\Promise $promise ) : array

Method Details

tearDown() public method

public tearDown ( )

testAvoidsRecursion() public method

public testAvoidsRecursion ( )

testCorrectFieldOrderingDespiteExecutionOrder() public method

testCorrectlyThreadsArguments() public method

testDoesNotIncludeArgumentsThatWereNotSet() public method

testDoesNotIncludeIllegalFieldsInOutput() public method

testExecutesArbitraryCode() public method

testFailsToExecuteQueryContainingTypeDefinition() public method

testFailsWhenAnIsTypeOfCheckIsNotMet() public method

testMergesParallelFragments() public method

testNullsOutErrorSubtrees() public method

testProvidesInfoAboutCurrentExecutionState() public method

testSerializesToEmptyObjectVsEmptyArray() public method

See also: https://github.com/webonyx/graphql-php/issues/59

testSubstitutesArgumentWithDefaultValue() public method

testThreadsContextCorrectly() public method

testThrowsIfNoOperationIsProvided() public method

testThrowsIfNoOperationIsProvidedWithMultipleOperations() public method

testThrowsIfUnknownOperationNameIsProvided() public method

testUsesTheInlineOperationIfNoOperationIsProvided() public method

testUsesTheMutationSchemaForMutations() public method

testUsesTheNamedOperationIfOperationNameIsProvided() public method

testUsesTheOnlyOperationIfNoOperationIsProvided() public method

testUsesTheQuerySchemaForQueries() public method

testUsesTheSubscriptionSchemaForSubscriptions() public method