PHP Class GraphQL\Tests\Type\SchemaValidatorTest

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

Méthodes publiques

Méthode Description
setUp ( )
testAcceptsASchemaThatSimplyHasAnInputTypeAsAFieldArg ( )
testAcceptsASchemaThatSimplyHasAnInputTypeAsAFieldArg2 ( ) Rule: NoOutputTypesAsInputArgs
testAcceptsAnObjectTypeWithFieldFunction ( )
testAcceptsAnObjectTypeWithFieldsObject ( )
testAcceptsSchemaWhoseQueryAndSubscriptionTypesAreObjectTypes ( )
testAcceptsSchemaWithListOfInputTypeAsInputFieldArg ( )
testAcceptsSchemaWithNonnullInputTypeAsInputFieldArg ( )
testAcceptsSchemaWithQueryAndMutationTypesOfObjectType ( )
testAcceptsSchemaWithQueryTypeOfObjectType ( )
testPassesOnTheIntrospectionSchema ( ) Type System Config
testRejectsASchemaThatUsesAnInputTypeAsAField ( )
testRejectsASchemaWithAListOfObjectsAsAnInputFieldArg ( )
testRejectsASchemaWithANonnullObjectAsAnInputFieldArg ( )
testRejectsASchemaWithAUnionTypeAsAnInputFieldArg ( )
testRejectsASchemaWithAnInterfaceTypeAsAnInputFieldArg ( )
testRejectsASchemaWithAnObjectTypeAsAnInputFieldArg ( )
testRejectsSchemaWhichDefinesObjectTypeTwice ( )
testRejectsSchemaWhichHaveSameNamedObjectsImplementingInterface ( )
testRejectsSchemaWhichRedefinesBuiltInType ( )
testRejectsSchemaWhoseDirectivesAreIncorrectlyTyped ( )
testRejectsSchemaWhoseMutationTypeIsInputType ( )
testRejectsSchemaWhoseQueryTypeIsAnInputType ( )
testRejectsSchemaWhoseSubscriptionTypeIsInputType ( )
testRejectsSchemaWithoutQueryType ( )
testRejectsWhenAPossibleTypeDoesNotImplementTheInterface ( )

Private Methods

Méthode Description
assertAcceptingFieldArgOfType ( $fieldArgType )
assertRejectingFieldArgOfType ( $fieldArgType )
checkValidationResult ( $validationErrors, $operationType )
expectFails ( $schemaConfig, $error )
expectPasses ( $schemaConfig )
expectRejectionBecauseFieldIsNotInputType ( $errors, $fieldTypeName )
expectToAcceptSchemaWithNormalInputArg ( $rule )
schemaWithFieldArgOfType ( $argType )
schemaWithFieldType ( $type )
withModifiers ( $types )

Method Details

setUp() public méthode

public setUp ( )

testAcceptsASchemaThatSimplyHasAnInputTypeAsAFieldArg() public méthode

testAcceptsASchemaThatSimplyHasAnInputTypeAsAFieldArg2() public méthode

Rule: NoOutputTypesAsInputArgs

testAcceptsAnObjectTypeWithFieldFunction() public méthode

testAcceptsAnObjectTypeWithFieldsObject() public méthode

testAcceptsSchemaWhoseQueryAndSubscriptionTypesAreObjectTypes() public méthode

testAcceptsSchemaWithListOfInputTypeAsInputFieldArg() public méthode

testAcceptsSchemaWithNonnullInputTypeAsInputFieldArg() public méthode

testAcceptsSchemaWithQueryAndMutationTypesOfObjectType() public méthode

testAcceptsSchemaWithQueryTypeOfObjectType() public méthode

testPassesOnTheIntrospectionSchema() public méthode

Type System Config

testRejectsASchemaThatUsesAnInputTypeAsAField() public méthode

testRejectsASchemaWithAListOfObjectsAsAnInputFieldArg() public méthode

testRejectsASchemaWithANonnullObjectAsAnInputFieldArg() public méthode

testRejectsASchemaWithAUnionTypeAsAnInputFieldArg() public méthode

testRejectsASchemaWithAnInterfaceTypeAsAnInputFieldArg() public méthode

testRejectsASchemaWithAnObjectTypeAsAnInputFieldArg() public méthode

testRejectsSchemaWhichDefinesObjectTypeTwice() public méthode

testRejectsSchemaWhichHaveSameNamedObjectsImplementingInterface() public méthode

testRejectsSchemaWhichRedefinesBuiltInType() public méthode

testRejectsSchemaWhoseDirectivesAreIncorrectlyTyped() public méthode

testRejectsSchemaWhoseMutationTypeIsInputType() public méthode

testRejectsSchemaWhoseQueryTypeIsAnInputType() public méthode

testRejectsSchemaWhoseSubscriptionTypeIsInputType() public méthode

testRejectsSchemaWithoutQueryType() public méthode

testRejectsWhenAPossibleTypeDoesNotImplementTheInterface() public méthode