PHP Class GraphQL\Tests\Type\EnumTypeTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: webonyx/graphql-php

Méthodes publiques

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

Private Methods

Méthode Description
expectFailure ( $query, $vars, $err )

Method Details

setUp() public méthode

public setUp ( )

testAcceptsEnumLiteralsAsInput() public méthode

testAcceptsEnumLiteralsAsInputArgumentsToMutations() public méthode

testAcceptsEnumLiteralsAsInputArgumentsToSubscriptions() public méthode

testAcceptsJSONStringAsEnumVariable() public méthode

testAllowsSimpleArrayAsValues() public méthode

testCanBeIntrospectedWithoutError() public méthode

testDoesNotAcceptEnumLiteralInPlaceOfInt() public méthode

testDoesNotAcceptIncorrectInternalValue() public méthode

testDoesNotAcceptInternalValueAsEnumVariable() public méthode

testDoesNotAcceptInternalValueInPlaceOfEnumLiteral() public méthode

testDoesNotAcceptInternalValueVariableSsEnumInput() public méthode

testDoesNotAcceptStringLiterals() public méthode

testDoesNotAcceptStringVariablesAsEnumInput() public méthode

testEnumInputsMayBeNullable() public méthode

testEnumMayBeBothInputAndOutputType() public méthode

testEnumMayBeOutputType() public méthode

testEnumValueMayHaveAnInternalValueOf0() public méthode

testMayBeInternallyRepresentedWithComplexValues() public méthode

testMayPresentValuesAPIForComplexEnums() public méthode