PHP Class GraphQL\Tests\Type\EnumTypeTest

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

Public Methods

Method Description
setUp ( )
testAcceptsEnumLiteralsAsInput ( )
testAcceptsEnumLiteralsAsInputArgumentsToMutations ( )
testAcceptsEnumLiteralsAsInputArgumentsToSubscriptions ( )
testAcceptsJSONStringAsEnumVariable ( )
testAllowsSimpleArrayAsValues ( )
testCanBeIntrospectedWithoutError ( )
testDoesNotAcceptEnumLiteralInPlaceOfInt ( )
testDoesNotAcceptIncorrectInternalValue ( )
testDoesNotAcceptInternalValueAsEnumVariable ( )
testDoesNotAcceptInternalValueInPlaceOfEnumLiteral ( )
testDoesNotAcceptInternalValueVariableSsEnumInput ( )
testDoesNotAcceptStringLiterals ( )
testDoesNotAcceptStringVariablesAsEnumInput ( )
testEnumInputsMayBeNullable ( )
testEnumMayBeBothInputAndOutputType ( )
testEnumMayBeOutputType ( )
testEnumValueMayHaveAnInternalValueOf0 ( )
testMayBeInternallyRepresentedWithComplexValues ( )
testMayPresentValuesAPIForComplexEnums ( )

Private Methods

Method Description
expectFailure ( $query, $vars, $err )

Method Details

setUp() public method

public setUp ( )

testAcceptsEnumLiteralsAsInput() public method

testAcceptsEnumLiteralsAsInputArgumentsToMutations() public method

testAcceptsEnumLiteralsAsInputArgumentsToSubscriptions() public method

testAcceptsJSONStringAsEnumVariable() public method

testAllowsSimpleArrayAsValues() public method

testCanBeIntrospectedWithoutError() public method

testDoesNotAcceptEnumLiteralInPlaceOfInt() public method

testDoesNotAcceptIncorrectInternalValue() public method

testDoesNotAcceptInternalValueAsEnumVariable() public method

testDoesNotAcceptInternalValueInPlaceOfEnumLiteral() public method

testDoesNotAcceptInternalValueVariableSsEnumInput() public method

testDoesNotAcceptStringLiterals() public method

testDoesNotAcceptStringVariablesAsEnumInput() public method

testEnumInputsMayBeNullable() public method

testEnumMayBeBothInputAndOutputType() public method

testEnumMayBeOutputType() public method

testEnumValueMayHaveAnInternalValueOf0() public method

testMayBeInternallyRepresentedWithComplexValues() public method

testMayPresentValuesAPIForComplexEnums() public method