mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 14:26:08 +03:00
Merge pull request #334 from simPod/replace-it
Replace misleading @it by @see annotation
This commit is contained in:
commit
573a77ce0c
@ -19,7 +19,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
// DESCRIBE: Execute: Handles execution of abstract types with promises
|
// DESCRIBE: Execute: Handles execution of abstract types with promises
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it isTypeOf used to resolve runtime type for Interface
|
* @see it('isTypeOf used to resolve runtime type for Interface')
|
||||||
*/
|
*/
|
||||||
public function testIsTypeOfUsedToResolveRuntimeTypeForInterface()
|
public function testIsTypeOfUsedToResolveRuntimeTypeForInterface()
|
||||||
{
|
{
|
||||||
@ -103,7 +103,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it isTypeOf can be rejected
|
* @see it('isTypeOf can be rejected')
|
||||||
*/
|
*/
|
||||||
public function testIsTypeOfCanBeRejected()
|
public function testIsTypeOfCanBeRejected()
|
||||||
{
|
{
|
||||||
@ -197,7 +197,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it isTypeOf used to resolve runtime type for Union
|
* @see it('isTypeOf used to resolve runtime type for Union')
|
||||||
*/
|
*/
|
||||||
public function testIsTypeOfUsedToResolveRuntimeTypeForUnion()
|
public function testIsTypeOfUsedToResolveRuntimeTypeForUnion()
|
||||||
{
|
{
|
||||||
@ -275,7 +275,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType on Interface yields useful error
|
* @see it('resolveType on Interface yields useful error')
|
||||||
*/
|
*/
|
||||||
public function testResolveTypeOnInterfaceYieldsUsefulError()
|
public function testResolveTypeOnInterfaceYieldsUsefulError()
|
||||||
{
|
{
|
||||||
@ -381,7 +381,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType on Union yields useful error
|
* @see it('resolveType on Union yields useful error')
|
||||||
*/
|
*/
|
||||||
public function testResolveTypeOnUnionYieldsUsefulError()
|
public function testResolveTypeOnUnionYieldsUsefulError()
|
||||||
{
|
{
|
||||||
@ -482,7 +482,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType allows resolving with type name
|
* @see it('resolveType allows resolving with type name')
|
||||||
*/
|
*/
|
||||||
public function testResolveTypeAllowsResolvingWithTypeName()
|
public function testResolveTypeAllowsResolvingWithTypeName()
|
||||||
{
|
{
|
||||||
@ -567,7 +567,7 @@ class AbstractPromiseTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType can be caught
|
* @see it('resolveType can be caught')
|
||||||
*/
|
*/
|
||||||
public function testResolveTypeCanBeCaught()
|
public function testResolveTypeCanBeCaught()
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ class AbstractTest extends TestCase
|
|||||||
// Execute: Handles execution of abstract types
|
// Execute: Handles execution of abstract types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it isTypeOf used to resolve runtime type for Interface
|
* @see it('isTypeOf used to resolve runtime type for Interface')
|
||||||
*/
|
*/
|
||||||
public function testIsTypeOfUsedToResolveRuntimeTypeForInterface()
|
public function testIsTypeOfUsedToResolveRuntimeTypeForInterface()
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ class AbstractTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it isTypeOf used to resolve runtime type for Union
|
* @see it('isTypeOf used to resolve runtime type for Union')
|
||||||
*/
|
*/
|
||||||
public function testIsTypeOfUsedToResolveRuntimeTypeForUnion()
|
public function testIsTypeOfUsedToResolveRuntimeTypeForUnion()
|
||||||
{
|
{
|
||||||
@ -159,7 +159,7 @@ class AbstractTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType on Interface yields useful error
|
* @see it('resolveType on Interface yields useful error')
|
||||||
*/
|
*/
|
||||||
function testResolveTypeOnInterfaceYieldsUsefulError()
|
function testResolveTypeOnInterfaceYieldsUsefulError()
|
||||||
{
|
{
|
||||||
@ -263,7 +263,7 @@ class AbstractTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType on Union yields useful error
|
* @see it('resolveType on Union yields useful error')
|
||||||
*/
|
*/
|
||||||
public function testResolveTypeOnUnionYieldsUsefulError()
|
public function testResolveTypeOnUnionYieldsUsefulError()
|
||||||
{
|
{
|
||||||
@ -358,7 +358,7 @@ class AbstractTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returning invalid value from resolveType yields useful error
|
* @see it('returning invalid value from resolveType yields useful error')
|
||||||
*/
|
*/
|
||||||
public function testReturningInvalidValueFromResolveTypeYieldsUsefulError()
|
public function testReturningInvalidValueFromResolveTypeYieldsUsefulError()
|
||||||
{
|
{
|
||||||
@ -413,7 +413,7 @@ class AbstractTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it resolveType allows resolving with type name
|
* @see it('resolveType allows resolving with type name')
|
||||||
*/
|
*/
|
||||||
public function testResolveTypeAllowsResolvingWithTypeName()
|
public function testResolveTypeAllowsResolvingWithTypeName()
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ class DirectivesTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @describe works without directives
|
* @describe works without directives
|
||||||
* @it basic query works
|
* @see it('basic query works')
|
||||||
*/
|
*/
|
||||||
public function testWorksWithoutDirectives()
|
public function testWorksWithoutDirectives()
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ class ExecutorSchemaTest extends TestCase
|
|||||||
// Execute: Handles execution with a complex schema
|
// Execute: Handles execution with a complex schema
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes using a schema
|
* @see it('executes using a schema')
|
||||||
*/
|
*/
|
||||||
public function testExecutesUsingASchema()
|
public function testExecutesUsingASchema()
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ class ExecutorTest extends TestCase
|
|||||||
// Execute: Handles basic execution tasks
|
// Execute: Handles basic execution tasks
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes arbitrary code
|
* @see it('executes arbitrary code')
|
||||||
*/
|
*/
|
||||||
public function testExecutesArbitraryCode()
|
public function testExecutesArbitraryCode()
|
||||||
{
|
{
|
||||||
@ -164,7 +164,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it merges parallel fragments
|
* @see it('merges parallel fragments')
|
||||||
*/
|
*/
|
||||||
public function testMergesParallelFragments()
|
public function testMergesParallelFragments()
|
||||||
{
|
{
|
||||||
@ -225,7 +225,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it provides info about current execution state
|
* @see it('provides info about current execution state')
|
||||||
*/
|
*/
|
||||||
public function testProvidesInfoAboutCurrentExecutionState()
|
public function testProvidesInfoAboutCurrentExecutionState()
|
||||||
{
|
{
|
||||||
@ -277,7 +277,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it threads root value context correctly
|
* @see it('threads root value context correctly')
|
||||||
*/
|
*/
|
||||||
public function testThreadsContextCorrectly()
|
public function testThreadsContextCorrectly()
|
||||||
{
|
{
|
||||||
@ -311,7 +311,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it correctly threads arguments
|
* @see it('correctly threads arguments')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyThreadsArguments()
|
public function testCorrectlyThreadsArguments()
|
||||||
{
|
{
|
||||||
@ -348,7 +348,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it nulls out error subtrees
|
* @see it('nulls out error subtrees')
|
||||||
*/
|
*/
|
||||||
public function testNullsOutErrorSubtrees()
|
public function testNullsOutErrorSubtrees()
|
||||||
{
|
{
|
||||||
@ -526,7 +526,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses the inline operation if no operation name is provided
|
* @see it('uses the inline operation if no operation name is provided')
|
||||||
*/
|
*/
|
||||||
public function testUsesTheInlineOperationIfNoOperationIsProvided()
|
public function testUsesTheInlineOperationIfNoOperationIsProvided()
|
||||||
{
|
{
|
||||||
@ -548,7 +548,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses the only operation if no operation name is provided
|
* @see it('uses the only operation if no operation name is provided')
|
||||||
*/
|
*/
|
||||||
public function testUsesTheOnlyOperationIfNoOperationIsProvided()
|
public function testUsesTheOnlyOperationIfNoOperationIsProvided()
|
||||||
{
|
{
|
||||||
@ -569,7 +569,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses the named operation if operation name is provided
|
* @see it('uses the named operation if operation name is provided')
|
||||||
*/
|
*/
|
||||||
public function testUsesTheNamedOperationIfOperationNameIsProvided()
|
public function testUsesTheNamedOperationIfOperationNameIsProvided()
|
||||||
{
|
{
|
||||||
@ -590,7 +590,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it provides error if no operation is provided
|
* @see it('provides error if no operation is provided')
|
||||||
*/
|
*/
|
||||||
public function testProvidesErrorIfNoOperationIsProvided()
|
public function testProvidesErrorIfNoOperationIsProvided()
|
||||||
{
|
{
|
||||||
@ -619,7 +619,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it errors if no op name is provided with multiple operations
|
* @see it('errors if no op name is provided with multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testErrorsIfNoOperationIsProvidedWithMultipleOperations()
|
public function testErrorsIfNoOperationIsProvidedWithMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -649,7 +649,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it errors if unknown operation name is provided
|
* @see it('errors if unknown operation name is provided')
|
||||||
*/
|
*/
|
||||||
public function testErrorsIfUnknownOperationNameIsProvided()
|
public function testErrorsIfUnknownOperationNameIsProvided()
|
||||||
{
|
{
|
||||||
@ -687,7 +687,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses the query schema for queries
|
* @see it('uses the query schema for queries')
|
||||||
*/
|
*/
|
||||||
public function testUsesTheQuerySchemaForQueries()
|
public function testUsesTheQuerySchemaForQueries()
|
||||||
{
|
{
|
||||||
@ -714,7 +714,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses the mutation schema for mutations
|
* @see it('uses the mutation schema for mutations')
|
||||||
*/
|
*/
|
||||||
public function testUsesTheMutationSchemaForMutations()
|
public function testUsesTheMutationSchemaForMutations()
|
||||||
{
|
{
|
||||||
@ -740,7 +740,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses the subscription schema for subscriptions
|
* @see it('uses the subscription schema for subscriptions')
|
||||||
*/
|
*/
|
||||||
public function testUsesTheSubscriptionSchemaForSubscriptions()
|
public function testUsesTheSubscriptionSchemaForSubscriptions()
|
||||||
{
|
{
|
||||||
@ -821,7 +821,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Avoids recursion
|
* @see it('Avoids recursion')
|
||||||
*/
|
*/
|
||||||
public function testAvoidsRecursion()
|
public function testAvoidsRecursion()
|
||||||
{
|
{
|
||||||
@ -853,7 +853,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not include illegal fields in output
|
* @see it('does not include illegal fields in output')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotIncludeIllegalFieldsInOutput()
|
public function testDoesNotIncludeIllegalFieldsInOutput()
|
||||||
{
|
{
|
||||||
@ -880,7 +880,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not include arguments that were not set
|
* @see it('does not include arguments that were not set')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotIncludeArgumentsThatWereNotSet()
|
public function testDoesNotIncludeArgumentsThatWereNotSet()
|
||||||
{
|
{
|
||||||
@ -915,7 +915,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fails when an isTypeOf check is not met
|
* @see it('fails when an isTypeOf check is not met')
|
||||||
*/
|
*/
|
||||||
public function testFailsWhenAnIsTypeOfCheckIsNotMet()
|
public function testFailsWhenAnIsTypeOfCheckIsNotMet()
|
||||||
{
|
{
|
||||||
@ -965,7 +965,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes ignoring invalid non-executable definitions
|
* @see it('executes ignoring invalid non-executable definitions')
|
||||||
*/
|
*/
|
||||||
public function testExecutesIgnoringInvalidNonExecutableDefinitions()
|
public function testExecutesIgnoringInvalidNonExecutableDefinitions()
|
||||||
{
|
{
|
||||||
@ -997,7 +997,7 @@ class ExecutorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses a custom field resolver
|
* @see it('uses a custom field resolver')
|
||||||
*/
|
*/
|
||||||
public function testUsesACustomFieldResolver()
|
public function testUsesACustomFieldResolver()
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ class MutationsTest extends TestCase
|
|||||||
// Execute: Handles mutation execution ordering
|
// Execute: Handles mutation execution ordering
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it evaluates mutations serially
|
* @see it('evaluates mutations serially')
|
||||||
*/
|
*/
|
||||||
public function testEvaluatesMutationsSerially()
|
public function testEvaluatesMutationsSerially()
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ class MutationsTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it evaluates mutations correctly in the presense of a failed mutation
|
* @see it('evaluates mutations correctly in the presense of a failed mutation')
|
||||||
*/
|
*/
|
||||||
public function testEvaluatesMutationsCorrectlyInThePresenseOfAFailedMutation()
|
public function testEvaluatesMutationsCorrectlyInThePresenseOfAFailedMutation()
|
||||||
{
|
{
|
||||||
|
@ -130,7 +130,7 @@ class NonNullTest extends TestCase
|
|||||||
// Execute: handles non-nullable types
|
// Execute: handles non-nullable types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it nulls a nullable field that throws synchronously
|
* @see it('nulls a nullable field that throws synchronously')
|
||||||
*/
|
*/
|
||||||
public function testNullsANullableFieldThatThrowsSynchronously()
|
public function testNullsANullableFieldThatThrowsSynchronously()
|
||||||
{
|
{
|
||||||
@ -278,7 +278,7 @@ class NonNullTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it nulls a complex tree of nullable fields that throw
|
* @see it('nulls a complex tree of nullable fields that throw')
|
||||||
*/
|
*/
|
||||||
public function testNullsAComplexTreeOfNullableFieldsThatThrow()
|
public function testNullsAComplexTreeOfNullableFieldsThatThrow()
|
||||||
{
|
{
|
||||||
@ -724,7 +724,7 @@ class NonNullTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it nulls the top level if sync non-nullable field throws
|
* @see it('nulls the top level if sync non-nullable field throws')
|
||||||
*/
|
*/
|
||||||
public function testNullsTheTopLevelIfSyncNonNullableFieldThrows()
|
public function testNullsTheTopLevelIfSyncNonNullableFieldThrows()
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ class ResolveTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it default function accesses properties
|
* @see it('default function accesses properties')
|
||||||
*/
|
*/
|
||||||
public function testDefaultFunctionAccessesProperties()
|
public function testDefaultFunctionAccessesProperties()
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ class ResolveTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it default function calls methods
|
* @see it('default function calls methods')
|
||||||
*/
|
*/
|
||||||
public function testDefaultFunctionCallsClosures()
|
public function testDefaultFunctionCallsClosures()
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ class ResolveTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it default function passes args and context
|
* @see it('default function passes args and context')
|
||||||
*/
|
*/
|
||||||
public function testDefaultFunctionPassesArgsAndContext()
|
public function testDefaultFunctionPassesArgsAndContext()
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ class ResolveTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses provided resolve function
|
* @see it('uses provided resolve function')
|
||||||
*/
|
*/
|
||||||
public function testUsesProvidedResolveFunction()
|
public function testUsesProvidedResolveFunction()
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ class SyncTest extends TestCase
|
|||||||
// Describe: Execute: synchronously when possible
|
// Describe: Execute: synchronously when possible
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not return a Promise for initial errors
|
* @see it('does not return a Promise for initial errors')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotReturnAPromiseForInitialErrors()
|
public function testDoesNotReturnAPromiseForInitialErrors()
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ class SyncTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not return a Promise if fields are all synchronous
|
* @see it('does not return a Promise if fields are all synchronous')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotReturnAPromiseIfFieldsAreAllSynchronous()
|
public function testDoesNotReturnAPromiseIfFieldsAreAllSynchronous()
|
||||||
{
|
{
|
||||||
@ -94,7 +94,7 @@ class SyncTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not return a Promise if mutation fields are all synchronous
|
* @see it('does not return a Promise if mutation fields are all synchronous')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotReturnAPromiseIfMutationFieldsAreAllSynchronous()
|
public function testDoesNotReturnAPromiseIfMutationFieldsAreAllSynchronous()
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ class SyncTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a Promise if any field is asynchronous
|
* @see it('returns a Promise if any field is asynchronous')
|
||||||
*/
|
*/
|
||||||
public function testReturnsAPromiseIfAnyFieldIsAsynchronous()
|
public function testReturnsAPromiseIfAnyFieldIsAsynchronous()
|
||||||
{
|
{
|
||||||
@ -124,7 +124,7 @@ class SyncTest extends TestCase
|
|||||||
// Describe: graphqlSync
|
// Describe: graphqlSync
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not return a Promise for syntax errors
|
* @see it('does not return a Promise for syntax errors')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotReturnAPromiseForSyntaxErrors()
|
public function testDoesNotReturnAPromiseForSyntaxErrors()
|
||||||
{
|
{
|
||||||
@ -142,7 +142,7 @@ class SyncTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not return a Promise for validation errors
|
* @see it('does not return a Promise for validation errors')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotReturnAPromiseForValidationErrors()
|
public function testDoesNotReturnAPromiseForValidationErrors()
|
||||||
{
|
{
|
||||||
@ -161,7 +161,7 @@ class SyncTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not return a Promise for sync execution
|
* @see it('does not return a Promise for sync execution')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotReturnAPromiseForSyncExecution()
|
public function testDoesNotReturnAPromiseForSyncExecution()
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
// Execute: Union and intersection types
|
// Execute: Union and intersection types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it can introspect on union and intersection types
|
* @see it('can introspect on union and intersection types')
|
||||||
*/
|
*/
|
||||||
public function testCanIntrospectOnUnionAndIntersectionTypes()
|
public function testCanIntrospectOnUnionAndIntersectionTypes()
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes using union types
|
* @see it('executes using union types')
|
||||||
*/
|
*/
|
||||||
public function testExecutesUsingUnionTypes()
|
public function testExecutesUsingUnionTypes()
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes union types with inline fragments
|
* @see it('executes union types with inline fragments')
|
||||||
*/
|
*/
|
||||||
public function testExecutesUnionTypesWithInlineFragments()
|
public function testExecutesUnionTypesWithInlineFragments()
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes using interface types
|
* @see it('executes using interface types')
|
||||||
*/
|
*/
|
||||||
public function testExecutesUsingInterfaceTypes()
|
public function testExecutesUsingInterfaceTypes()
|
||||||
{
|
{
|
||||||
@ -261,7 +261,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes interface types with inline fragments
|
* @see it('executes interface types with inline fragments')
|
||||||
*/
|
*/
|
||||||
public function testExecutesInterfaceTypesWithInlineFragments()
|
public function testExecutesInterfaceTypesWithInlineFragments()
|
||||||
{
|
{
|
||||||
@ -297,7 +297,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows fragment conditions to be abstract types
|
* @see it('allows fragment conditions to be abstract types')
|
||||||
*/
|
*/
|
||||||
public function testAllowsFragmentConditionsToBeAbstractTypes()
|
public function testAllowsFragmentConditionsToBeAbstractTypes()
|
||||||
{
|
{
|
||||||
@ -352,7 +352,7 @@ class UnionInterfaceTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it gets execution info in resolver
|
* @see it('gets execution info in resolver')
|
||||||
*/
|
*/
|
||||||
public function testGetsExecutionInfoInResolver()
|
public function testGetsExecutionInfoInResolver()
|
||||||
{
|
{
|
||||||
|
@ -247,7 +247,7 @@ class VariablesTest extends TestCase
|
|||||||
// Describe: Handles nullable scalars
|
// Describe: Handles nullable scalars
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows nullable inputs to be omitted
|
* @see it('allows nullable inputs to be omitted')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNullableInputsToBeOmitted()
|
public function testAllowsNullableInputsToBeOmitted()
|
||||||
{
|
{
|
||||||
@ -264,7 +264,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows nullable inputs to be omitted in a variable
|
* @see it('allows nullable inputs to be omitted in a variable')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNullableInputsToBeOmittedInAVariable()
|
public function testAllowsNullableInputsToBeOmittedInAVariable()
|
||||||
{
|
{
|
||||||
@ -279,7 +279,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows nullable inputs to be omitted in an unlisted variable
|
* @see it('allows nullable inputs to be omitted in an unlisted variable')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNullableInputsToBeOmittedInAnUnlistedVariable()
|
public function testAllowsNullableInputsToBeOmittedInAnUnlistedVariable()
|
||||||
{
|
{
|
||||||
@ -293,7 +293,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows nullable inputs to be set to null in a variable
|
* @see it('allows nullable inputs to be set to null in a variable')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNullableInputsToBeSetToNullInAVariable()
|
public function testAllowsNullableInputsToBeSetToNullInAVariable()
|
||||||
{
|
{
|
||||||
@ -308,7 +308,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows nullable inputs to be set to a value in a variable
|
* @see it('allows nullable inputs to be set to a value in a variable')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNullableInputsToBeSetToAValueInAVariable()
|
public function testAllowsNullableInputsToBeSetToAValueInAVariable()
|
||||||
{
|
{
|
||||||
@ -323,7 +323,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows nullable inputs to be set to a value directly
|
* @see it('allows nullable inputs to be set to a value directly')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNullableInputsToBeSetToAValueDirectly()
|
public function testAllowsNullableInputsToBeSetToAValueDirectly()
|
||||||
{
|
{
|
||||||
@ -340,7 +340,7 @@ class VariablesTest extends TestCase
|
|||||||
// Describe: Handles non-nullable scalars
|
// Describe: Handles non-nullable scalars
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-nullable inputs to be omitted given a default
|
* @see it('allows non-nullable inputs to be omitted given a default')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonNullableInputsToBeOmittedGivenADefault()
|
public function testAllowsNonNullableInputsToBeOmittedGivenADefault()
|
||||||
{
|
{
|
||||||
@ -356,7 +356,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow non-nullable inputs to be omitted in a variable
|
* @see it('does not allow non-nullable inputs to be omitted in a variable')
|
||||||
*/
|
*/
|
||||||
public function testDoesntAllowNonNullableInputsToBeOmittedInAVariable()
|
public function testDoesntAllowNonNullableInputsToBeOmittedInAVariable()
|
||||||
{
|
{
|
||||||
@ -379,7 +379,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow non-nullable inputs to be set to null in a variable
|
* @see it('does not allow non-nullable inputs to be set to null in a variable')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowNonNullableInputsToBeSetToNullInAVariable()
|
public function testDoesNotAllowNonNullableInputsToBeSetToNullInAVariable()
|
||||||
{
|
{
|
||||||
@ -404,7 +404,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-nullable inputs to be set to a value in a variable
|
* @see it('allows non-nullable inputs to be set to a value in a variable')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonNullableInputsToBeSetToAValueInAVariable()
|
public function testAllowsNonNullableInputsToBeSetToAValueInAVariable()
|
||||||
{
|
{
|
||||||
@ -419,7 +419,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-nullable inputs to be set to a value directly
|
* @see it('allows non-nullable inputs to be set to a value directly')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonNullableInputsToBeSetToAValueDirectly()
|
public function testAllowsNonNullableInputsToBeSetToAValueDirectly()
|
||||||
{
|
{
|
||||||
@ -433,7 +433,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports error for missing non-nullable inputs
|
* @see it('reports error for missing non-nullable inputs')
|
||||||
*/
|
*/
|
||||||
public function testReportsErrorForMissingNonNullableInputs()
|
public function testReportsErrorForMissingNonNullableInputs()
|
||||||
{
|
{
|
||||||
@ -455,7 +455,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports error for array passed into string input
|
* @see it('reports error for array passed into string input')
|
||||||
*/
|
*/
|
||||||
public function testReportsErrorForArrayPassedIntoStringInput()
|
public function testReportsErrorForArrayPassedIntoStringInput()
|
||||||
{
|
{
|
||||||
@ -483,7 +483,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it serializing an array via GraphQLString throws TypeError
|
* @see it('serializing an array via GraphQLString throws TypeError')
|
||||||
*/
|
*/
|
||||||
public function testSerializingAnArrayViaGraphQLStringThrowsTypeError()
|
public function testSerializingAnArrayViaGraphQLStringThrowsTypeError()
|
||||||
{
|
{
|
||||||
@ -493,7 +493,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports error for non-provided variables for non-nullable inputs
|
* @see it('reports error for non-provided variables for non-nullable inputs')
|
||||||
*/
|
*/
|
||||||
public function testReportsErrorForNonProvidedVariablesForNonNullableInputs()
|
public function testReportsErrorForNonProvidedVariablesForNonNullableInputs()
|
||||||
{
|
{
|
||||||
@ -524,7 +524,7 @@ class VariablesTest extends TestCase
|
|||||||
// Describe: Handles lists and nullability
|
// Describe: Handles lists and nullability
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows lists to be null
|
* @see it('allows lists to be null')
|
||||||
*/
|
*/
|
||||||
public function testAllowsListsToBeNull()
|
public function testAllowsListsToBeNull()
|
||||||
{
|
{
|
||||||
@ -540,7 +540,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows lists to contain values
|
* @see it('allows lists to contain values')
|
||||||
*/
|
*/
|
||||||
public function testAllowsListsToContainValues()
|
public function testAllowsListsToContainValues()
|
||||||
{
|
{
|
||||||
@ -555,7 +555,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows lists to contain null
|
* @see it('allows lists to contain null')
|
||||||
*/
|
*/
|
||||||
public function testAllowsListsToContainNull()
|
public function testAllowsListsToContainNull()
|
||||||
{
|
{
|
||||||
@ -570,7 +570,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow non-null lists to be null
|
* @see it('does not allow non-null lists to be null')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowNonNullListsToBeNull()
|
public function testDoesNotAllowNonNullListsToBeNull()
|
||||||
{
|
{
|
||||||
@ -595,7 +595,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-null lists to contain values
|
* @see it('allows non-null lists to contain values')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonNullListsToContainValues()
|
public function testAllowsNonNullListsToContainValues()
|
||||||
{
|
{
|
||||||
@ -610,7 +610,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-null lists to contain null
|
* @see it('allows non-null lists to contain null')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonNullListsToContainNull()
|
public function testAllowsNonNullListsToContainNull()
|
||||||
{
|
{
|
||||||
@ -625,7 +625,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows lists of non-nulls to be null
|
* @see it('allows lists of non-nulls to be null')
|
||||||
*/
|
*/
|
||||||
public function testAllowsListsOfNonNullsToBeNull()
|
public function testAllowsListsOfNonNullsToBeNull()
|
||||||
{
|
{
|
||||||
@ -640,7 +640,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows lists of non-nulls to contain values
|
* @see it('allows lists of non-nulls to contain values')
|
||||||
*/
|
*/
|
||||||
public function testAllowsListsOfNonNullsToContainValues()
|
public function testAllowsListsOfNonNullsToContainValues()
|
||||||
{
|
{
|
||||||
@ -655,7 +655,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow lists of non-nulls to contain null
|
* @see it('does not allow lists of non-nulls to contain null')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowListsOfNonNullsToContainNull()
|
public function testDoesNotAllowListsOfNonNullsToContainNull()
|
||||||
{
|
{
|
||||||
@ -680,7 +680,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow non-null lists of non-nulls to be null
|
* @see it('does not allow non-null lists of non-nulls to be null')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowNonNullListsOfNonNullsToBeNull()
|
public function testDoesNotAllowNonNullListsOfNonNullsToBeNull()
|
||||||
{
|
{
|
||||||
@ -705,7 +705,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-null lists of non-nulls to contain values
|
* @see it('allows non-null lists of non-nulls to contain values')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonNullListsOfNonNullsToContainValues()
|
public function testAllowsNonNullListsOfNonNullsToContainValues()
|
||||||
{
|
{
|
||||||
@ -720,7 +720,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow non-null lists of non-nulls to contain null
|
* @see it('does not allow non-null lists of non-nulls to contain null')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowNonNullListsOfNonNullsToContainNull()
|
public function testDoesNotAllowNonNullListsOfNonNullsToContainNull()
|
||||||
{
|
{
|
||||||
@ -745,7 +745,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow invalid types to be used as values
|
* @see it('does not allow invalid types to be used as values')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowInvalidTypesToBeUsedAsValues()
|
public function testDoesNotAllowInvalidTypesToBeUsedAsValues()
|
||||||
{
|
{
|
||||||
@ -771,7 +771,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow unknown types to be used as values
|
* @see it('does not allow unknown types to be used as values')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowUnknownTypesToBeUsedAsValues()
|
public function testDoesNotAllowUnknownTypesToBeUsedAsValues()
|
||||||
{
|
{
|
||||||
@ -799,7 +799,7 @@ class VariablesTest extends TestCase
|
|||||||
|
|
||||||
// Describe: Execute: Uses argument default values
|
// Describe: Execute: Uses argument default values
|
||||||
/**
|
/**
|
||||||
* @it when no argument provided
|
* @see it('when no argument provided')
|
||||||
*/
|
*/
|
||||||
public function testWhenNoArgumentProvided()
|
public function testWhenNoArgumentProvided()
|
||||||
{
|
{
|
||||||
@ -814,7 +814,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it when omitted variable provided
|
* @see it('when omitted variable provided')
|
||||||
*/
|
*/
|
||||||
public function testWhenOmittedVariableProvided()
|
public function testWhenOmittedVariableProvided()
|
||||||
{
|
{
|
||||||
@ -829,7 +829,7 @@ class VariablesTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it not when argument cannot be coerced
|
* @see it('not when argument cannot be coerced')
|
||||||
*/
|
*/
|
||||||
public function testNotWhenArgumentCannotBeCoerced()
|
public function testNotWhenArgumentCannotBeCoerced()
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ use PHPUnit\Framework\TestCase;
|
|||||||
class LexerTest extends TestCase
|
class LexerTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @it disallows uncommon control characters
|
* @see it('disallows uncommon control characters')
|
||||||
*/
|
*/
|
||||||
public function testDissallowsUncommonControlCharacters()
|
public function testDissallowsUncommonControlCharacters()
|
||||||
{
|
{
|
||||||
@ -24,7 +24,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts BOM header
|
* @see it('accepts BOM header')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsBomHeader()
|
public function testAcceptsBomHeader()
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it records line and column
|
* @see it('records line and column')
|
||||||
*/
|
*/
|
||||||
public function testRecordsLineAndColumn()
|
public function testRecordsLineAndColumn()
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it skips whitespace and comments
|
* @see it('skips whitespace and comments')
|
||||||
*/
|
*/
|
||||||
public function testSkipsWhitespacesAndComments()
|
public function testSkipsWhitespacesAndComments()
|
||||||
{
|
{
|
||||||
@ -99,7 +99,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it errors respect whitespace
|
* @see it('errors respect whitespace')
|
||||||
*/
|
*/
|
||||||
public function testErrorsRespectWhitespace()
|
public function testErrorsRespectWhitespace()
|
||||||
{
|
{
|
||||||
@ -127,7 +127,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it updates line numbers in error for file context
|
* @see it('updates line numbers in error for file context')
|
||||||
*/
|
*/
|
||||||
public function testUpdatesLineNumbersInErrorForFileContext()
|
public function testUpdatesLineNumbersInErrorForFileContext()
|
||||||
{
|
{
|
||||||
@ -177,7 +177,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it lexes strings
|
* @see it('lexes strings')
|
||||||
*/
|
*/
|
||||||
public function testLexesStrings()
|
public function testLexesStrings()
|
||||||
{
|
{
|
||||||
@ -241,7 +241,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it lexes block strings
|
* @see it('lexes block strings')
|
||||||
*/
|
*/
|
||||||
public function testLexesBlockString()
|
public function testLexesBlockString()
|
||||||
{
|
{
|
||||||
@ -336,7 +336,7 @@ class LexerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider reportsUsefulStringErrors
|
* @dataProvider reportsUsefulStringErrors
|
||||||
* @it lex reports useful string errors
|
* @see it('lex reports useful string errors')
|
||||||
*/
|
*/
|
||||||
public function testLexReportsUsefulStringErrors($str, $expectedMessage, $location)
|
public function testLexReportsUsefulStringErrors($str, $expectedMessage, $location)
|
||||||
{
|
{
|
||||||
@ -354,7 +354,7 @@ class LexerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider reportsUsefulBlockStringErrors
|
* @dataProvider reportsUsefulBlockStringErrors
|
||||||
* @it lex reports useful block string errors
|
* @see it('lex reports useful block string errors')
|
||||||
*/
|
*/
|
||||||
public function testReportsUsefulBlockStringErrors($str, $expectedMessage, $location)
|
public function testReportsUsefulBlockStringErrors($str, $expectedMessage, $location)
|
||||||
{
|
{
|
||||||
@ -362,7 +362,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it lexes numbers
|
* @see it('lexes numbers')
|
||||||
*/
|
*/
|
||||||
public function testLexesNumbers()
|
public function testLexesNumbers()
|
||||||
{
|
{
|
||||||
@ -449,7 +449,7 @@ class LexerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider reportsUsefulNumberErrors
|
* @dataProvider reportsUsefulNumberErrors
|
||||||
* @it lex reports useful number errors
|
* @see it('lex reports useful number errors')
|
||||||
*/
|
*/
|
||||||
public function testReportsUsefulNumberErrors($str, $expectedMessage, $location)
|
public function testReportsUsefulNumberErrors($str, $expectedMessage, $location)
|
||||||
{
|
{
|
||||||
@ -457,7 +457,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it lexes punctuation
|
* @see it('lexes punctuation')
|
||||||
*/
|
*/
|
||||||
public function testLexesPunctuation()
|
public function testLexesPunctuation()
|
||||||
{
|
{
|
||||||
@ -530,7 +530,7 @@ class LexerTest extends TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider reportsUsefulUnknownCharErrors
|
* @dataProvider reportsUsefulUnknownCharErrors
|
||||||
* @it lex reports useful unknown character error
|
* @see it('lex reports useful unknown character error')
|
||||||
*/
|
*/
|
||||||
public function testReportsUsefulUnknownCharErrors($str, $expectedMessage, $location)
|
public function testReportsUsefulUnknownCharErrors($str, $expectedMessage, $location)
|
||||||
{
|
{
|
||||||
@ -538,7 +538,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it lex reports useful information for dashes in names
|
* @see it('lex reports useful information for dashes in names')
|
||||||
*/
|
*/
|
||||||
public function testReportsUsefulDashesInfo()
|
public function testReportsUsefulDashesInfo()
|
||||||
{
|
{
|
||||||
@ -558,7 +558,7 @@ class LexerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it produces double linked list of tokens, including comments
|
* @see it('produces double linked list of tokens, including comments')
|
||||||
*/
|
*/
|
||||||
public function testDoubleLinkedList()
|
public function testDoubleLinkedList()
|
||||||
{
|
{
|
||||||
|
@ -55,7 +55,7 @@ fragment MissingOn Type
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider parseProvidesUsefulErrors
|
* @dataProvider parseProvidesUsefulErrors
|
||||||
* @it parse provides useful errors
|
* @see it('parse provides useful errors')
|
||||||
*/
|
*/
|
||||||
public function testParseProvidesUsefulErrors($str, $expectedMessage, $stringRepresentation, $expectedPositions = null, $expectedLocations = null)
|
public function testParseProvidesUsefulErrors($str, $expectedMessage, $stringRepresentation, $expectedPositions = null, $expectedLocations = null)
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ fragment MissingOn Type
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parse provides useful error when using source
|
* @see it('parse provides useful error when using source')
|
||||||
*/
|
*/
|
||||||
public function testParseProvidesUsefulErrorWhenUsingSource()
|
public function testParseProvidesUsefulErrorWhenUsingSource()
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ fragment MissingOn Type
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses variable inline values
|
* @see it('parses variable inline values')
|
||||||
*/
|
*/
|
||||||
public function testParsesVariableInlineValues()
|
public function testParsesVariableInlineValues()
|
||||||
{
|
{
|
||||||
@ -103,7 +103,7 @@ fragment MissingOn Type
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses constant default values
|
* @see it('parses constant default values')
|
||||||
*/
|
*/
|
||||||
public function testParsesConstantDefaultValues()
|
public function testParsesConstantDefaultValues()
|
||||||
{
|
{
|
||||||
@ -115,7 +115,7 @@ fragment MissingOn Type
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept fragments spread of "on"
|
* @see it('does not accept fragments spread of "on"')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptFragmentsNamedOn()
|
public function testDoesNotAcceptFragmentsNamedOn()
|
||||||
{
|
{
|
||||||
@ -127,7 +127,7 @@ fragment MissingOn Type
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept fragments spread of "on"
|
* @see it('does not accept fragments spread of "on"')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptFragmentSpreadOfOn()
|
public function testDoesNotAcceptFragmentSpreadOfOn()
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ fragment MissingOn Type
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses multi-byte characters
|
* @see it('parses multi-byte characters')
|
||||||
*/
|
*/
|
||||||
public function testParsesMultiByteCharacters()
|
public function testParsesMultiByteCharacters()
|
||||||
{
|
{
|
||||||
@ -174,7 +174,7 @@ HEREDOC;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses kitchen sink
|
* @see it('parses kitchen sink')
|
||||||
*/
|
*/
|
||||||
public function testParsesKitchenSink()
|
public function testParsesKitchenSink()
|
||||||
{
|
{
|
||||||
@ -218,7 +218,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses anonymous mutation operations
|
* @see it('parses anonymous mutation operations')
|
||||||
*/
|
*/
|
||||||
public function testParsessAnonymousMutationOperations()
|
public function testParsessAnonymousMutationOperations()
|
||||||
{
|
{
|
||||||
@ -232,7 +232,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses anonymous subscription operations
|
* @see it('parses anonymous subscription operations')
|
||||||
*/
|
*/
|
||||||
public function testParsesAnonymousSubscriptionOperations()
|
public function testParsesAnonymousSubscriptionOperations()
|
||||||
{
|
{
|
||||||
@ -246,7 +246,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses named mutation operations
|
* @see it('parses named mutation operations')
|
||||||
*/
|
*/
|
||||||
public function testParsesNamedMutationOperations()
|
public function testParsesNamedMutationOperations()
|
||||||
{
|
{
|
||||||
@ -260,7 +260,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses named subscription operations
|
* @see it('parses named subscription operations')
|
||||||
*/
|
*/
|
||||||
public function testParsesNamedSubscriptionOperations()
|
public function testParsesNamedSubscriptionOperations()
|
||||||
{
|
{
|
||||||
@ -273,7 +273,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it creates ast
|
* @see it('creates ast')
|
||||||
*/
|
*/
|
||||||
public function testParseCreatesAst()
|
public function testParseCreatesAst()
|
||||||
{
|
{
|
||||||
@ -377,7 +377,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it creates ast from nameless query without variables
|
* @see it('creates ast from nameless query without variables')
|
||||||
*/
|
*/
|
||||||
public function testParseCreatesAstFromNamelessQueryWithoutVariables()
|
public function testParseCreatesAstFromNamelessQueryWithoutVariables()
|
||||||
{
|
{
|
||||||
@ -452,7 +452,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows parsing without source location information
|
* @see it('allows parsing without source location information')
|
||||||
*/
|
*/
|
||||||
public function testAllowsParsingWithoutSourceLocationInformation()
|
public function testAllowsParsingWithoutSourceLocationInformation()
|
||||||
{
|
{
|
||||||
@ -463,7 +463,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Experimental: allows parsing fragment defined variables
|
* @see it('Experimental: allows parsing fragment defined variables')
|
||||||
*/
|
*/
|
||||||
public function testExperimentalAllowsParsingFragmentDefinedVariables()
|
public function testExperimentalAllowsParsingFragmentDefinedVariables()
|
||||||
{
|
{
|
||||||
@ -476,7 +476,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it contains location information that only stringifys start/end
|
* @see it('contains location information that only stringifys start/end')
|
||||||
*/
|
*/
|
||||||
public function testContainsLocationInformationThatOnlyStringifysStartEnd()
|
public function testContainsLocationInformationThatOnlyStringifysStartEnd()
|
||||||
{
|
{
|
||||||
@ -486,7 +486,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it contains references to source
|
* @see it('contains references to source')
|
||||||
*/
|
*/
|
||||||
public function testContainsReferencesToSource()
|
public function testContainsReferencesToSource()
|
||||||
{
|
{
|
||||||
@ -496,7 +496,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it contains references to start and end tokens
|
* @see it('contains references to start and end tokens')
|
||||||
*/
|
*/
|
||||||
public function testContainsReferencesToStartAndEndTokens()
|
public function testContainsReferencesToStartAndEndTokens()
|
||||||
{
|
{
|
||||||
@ -509,7 +509,7 @@ fragment $fragmentName on Type {
|
|||||||
// Describe: parseValue
|
// Describe: parseValue
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses null value
|
* @see it('parses null value')
|
||||||
*/
|
*/
|
||||||
public function testParsesNullValues()
|
public function testParsesNullValues()
|
||||||
{
|
{
|
||||||
@ -520,7 +520,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses list values
|
* @see it('parses list values')
|
||||||
*/
|
*/
|
||||||
public function testParsesListValues()
|
public function testParsesListValues()
|
||||||
{
|
{
|
||||||
@ -546,7 +546,7 @@ fragment $fragmentName on Type {
|
|||||||
// Describe: parseType
|
// Describe: parseType
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses well known types
|
* @see it('parses well known types')
|
||||||
*/
|
*/
|
||||||
public function testParsesWellKnownTypes()
|
public function testParsesWellKnownTypes()
|
||||||
{
|
{
|
||||||
@ -562,7 +562,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses custom types
|
* @see it('parses custom types')
|
||||||
*/
|
*/
|
||||||
public function testParsesCustomTypes()
|
public function testParsesCustomTypes()
|
||||||
{
|
{
|
||||||
@ -578,7 +578,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses list types
|
* @see it('parses list types')
|
||||||
*/
|
*/
|
||||||
public function testParsesListTypes()
|
public function testParsesListTypes()
|
||||||
{
|
{
|
||||||
@ -598,7 +598,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses non-null types
|
* @see it('parses non-null types')
|
||||||
*/
|
*/
|
||||||
public function testParsesNonNullTypes()
|
public function testParsesNonNullTypes()
|
||||||
{
|
{
|
||||||
@ -618,7 +618,7 @@ fragment $fragmentName on Type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses nested types
|
* @see it('parses nested types')
|
||||||
*/
|
*/
|
||||||
public function testParsesNestedTypes()
|
public function testParsesNestedTypes()
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
|
|||||||
class PrinterTest extends TestCase
|
class PrinterTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @it does not alter ast
|
* @see it('does not alter ast')
|
||||||
*/
|
*/
|
||||||
public function testDoesntAlterAST()
|
public function testDoesntAlterAST()
|
||||||
{
|
{
|
||||||
@ -32,7 +32,7 @@ class PrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it prints minimal ast
|
* @see it('prints minimal ast')
|
||||||
*/
|
*/
|
||||||
public function testPrintsMinimalAst()
|
public function testPrintsMinimalAst()
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ class PrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it produces helpful error messages
|
* @see it('produces helpful error messages')
|
||||||
*/
|
*/
|
||||||
public function testProducesHelpfulErrorMessages()
|
public function testProducesHelpfulErrorMessages()
|
||||||
{
|
{
|
||||||
@ -52,7 +52,7 @@ class PrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it correctly prints non-query operations without name
|
* @see it('correctly prints non-query operations without name')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyPrintsOpsWithoutName()
|
public function testCorrectlyPrintsOpsWithoutName()
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ class PrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it correctly prints single-line with leading space
|
* @see it('correctly prints single-line with leading space')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyPrintsSingleLineBlockStringsWithLeadingSpace()
|
public function testCorrectlyPrintsSingleLineBlockStringsWithLeadingSpace()
|
||||||
{
|
{
|
||||||
@ -110,7 +110,7 @@ class PrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it correctly prints string with a first line indentation
|
* @see it('correctly prints string with a first line indentation')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyPrintsBlockStringsWithAFirstLineIndentation()
|
public function testCorrectlyPrintsBlockStringsWithAFirstLineIndentation()
|
||||||
{
|
{
|
||||||
@ -135,7 +135,7 @@ class PrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it correctly prints single-line with leading space and quotation
|
* @see it('correctly prints single-line with leading space and quotation')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyPrintsSingleLineWithLeadingSpaceAndQuotation()
|
public function testCorrectlyPrintsSingleLineWithLeadingSpaceAndQuotation()
|
||||||
{
|
{
|
||||||
@ -156,7 +156,7 @@ END;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Experimental: correctly prints fragment defined variables
|
* @see it('Experimental: correctly prints fragment defined variables')
|
||||||
*/
|
*/
|
||||||
public function testExperimentalCorrectlyPrintsFragmentDefinedVariables()
|
public function testExperimentalCorrectlyPrintsFragmentDefinedVariables()
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ END;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it correctly prints single-line with leading space and quotation
|
* @see it('correctly prints single-line with leading space and quotation')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyPrintsSingleLineStringsWithLeadingSpaceAndQuotation()
|
public function testCorrectlyPrintsSingleLineStringsWithLeadingSpaceAndQuotation()
|
||||||
{
|
{
|
||||||
@ -197,7 +197,7 @@ END;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it prints kitchen sink
|
* @see it('prints kitchen sink')
|
||||||
*/
|
*/
|
||||||
public function testPrintsKitchenSink()
|
public function testPrintsKitchenSink()
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ class SchemaParserTest extends TestCase
|
|||||||
// Describe: Schema Parser
|
// Describe: Schema Parser
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type
|
* @see it('Simple type')
|
||||||
*/
|
*/
|
||||||
public function testSimpleType()
|
public function testSimpleType()
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses type with description string
|
* @see it('parses type with description string')
|
||||||
*/
|
*/
|
||||||
public function testParsesTypeWithDescriptionString()
|
public function testParsesTypeWithDescriptionString()
|
||||||
{
|
{
|
||||||
@ -90,7 +90,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses type with description multi-linestring
|
* @see it('parses type with description multi-linestring')
|
||||||
*/
|
*/
|
||||||
public function testParsesTypeWithDescriptionMultiLineString()
|
public function testParsesTypeWithDescriptionMultiLineString()
|
||||||
{
|
{
|
||||||
@ -135,7 +135,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple extension
|
* @see it('Simple extension')
|
||||||
*/
|
*/
|
||||||
public function testSimpleExtension()
|
public function testSimpleExtension()
|
||||||
{
|
{
|
||||||
@ -172,7 +172,7 @@ extend type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Extension without fields
|
* @see it('Extension without fields')
|
||||||
*/
|
*/
|
||||||
public function testExtensionWithoutFields()
|
public function testExtensionWithoutFields()
|
||||||
{
|
{
|
||||||
@ -201,7 +201,7 @@ extend type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Extension without fields followed by extension
|
* @see it('Extension without fields followed by extension')
|
||||||
*/
|
*/
|
||||||
public function testExtensionWithoutFieldsFollowedByExtension()
|
public function testExtensionWithoutFieldsFollowedByExtension()
|
||||||
{
|
{
|
||||||
@ -237,7 +237,7 @@ extend type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Extension without anything throws
|
* @see it('Extension without anything throws')
|
||||||
*/
|
*/
|
||||||
public function testExtensionWithoutAnythingThrows()
|
public function testExtensionWithoutAnythingThrows()
|
||||||
{
|
{
|
||||||
@ -249,7 +249,7 @@ extend type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Extension do not include descriptions
|
* @see it('Extension do not include descriptions')
|
||||||
*/
|
*/
|
||||||
public function testExtensionDoNotIncludeDescriptions()
|
public function testExtensionDoNotIncludeDescriptions()
|
||||||
{
|
{
|
||||||
@ -266,7 +266,7 @@ extend type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Extension do not include descriptions
|
* @see it('Extension do not include descriptions')
|
||||||
*/
|
*/
|
||||||
public function testExtensionDoNotIncludeDescriptions2()
|
public function testExtensionDoNotIncludeDescriptions2()
|
||||||
{
|
{
|
||||||
@ -283,7 +283,7 @@ extend type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple non-null type
|
* @see it('Simple non-null type')
|
||||||
*/
|
*/
|
||||||
public function testSimpleNonNullType()
|
public function testSimpleNonNullType()
|
||||||
{
|
{
|
||||||
@ -326,7 +326,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type inheriting interface
|
* @see it('Simple type inheriting interface')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeInheritingInterface()
|
public function testSimpleTypeInheritingInterface()
|
||||||
{
|
{
|
||||||
@ -362,7 +362,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type inheriting multiple interfaces
|
* @see it('Simple type inheriting multiple interfaces')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeInheritingMultipleInterfaces()
|
public function testSimpleTypeInheritingMultipleInterfaces()
|
||||||
{
|
{
|
||||||
@ -399,7 +399,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type inheriting multiple interfaces with leading ampersand
|
* @see it('Simple type inheriting multiple interfaces with leading ampersand')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeInheritingMultipleInterfacesWithLeadingAmpersand()
|
public function testSimpleTypeInheritingMultipleInterfacesWithLeadingAmpersand()
|
||||||
{
|
{
|
||||||
@ -434,7 +434,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Single value enum
|
* @see it('Single value enum')
|
||||||
*/
|
*/
|
||||||
public function testSingleValueEnum()
|
public function testSingleValueEnum()
|
||||||
{
|
{
|
||||||
@ -461,7 +461,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Double value enum
|
* @see it('Double value enum')
|
||||||
*/
|
*/
|
||||||
public function testDoubleValueEnum()
|
public function testDoubleValueEnum()
|
||||||
{
|
{
|
||||||
@ -491,7 +491,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple interface
|
* @see it('Simple interface')
|
||||||
*/
|
*/
|
||||||
public function testSimpleInterface()
|
public function testSimpleInterface()
|
||||||
{
|
{
|
||||||
@ -526,7 +526,7 @@ interface Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple field with arg
|
* @see it('Simple field with arg')
|
||||||
*/
|
*/
|
||||||
public function testSimpleFieldWithArg()
|
public function testSimpleFieldWithArg()
|
||||||
{
|
{
|
||||||
@ -571,7 +571,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple field with arg with default value
|
* @see it('Simple field with arg with default value')
|
||||||
*/
|
*/
|
||||||
public function testSimpleFieldWithArgWithDefaultValue()
|
public function testSimpleFieldWithArgWithDefaultValue()
|
||||||
{
|
{
|
||||||
@ -615,7 +615,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple field with list arg
|
* @see it('Simple field with list arg')
|
||||||
*/
|
*/
|
||||||
public function testSimpleFieldWithListArg()
|
public function testSimpleFieldWithListArg()
|
||||||
{
|
{
|
||||||
@ -660,7 +660,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple field with two args
|
* @see it('Simple field with two args')
|
||||||
*/
|
*/
|
||||||
public function testSimpleFieldWithTwoArgs()
|
public function testSimpleFieldWithTwoArgs()
|
||||||
{
|
{
|
||||||
@ -711,7 +711,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple union
|
* @see it('Simple union')
|
||||||
*/
|
*/
|
||||||
public function testSimpleUnion()
|
public function testSimpleUnion()
|
||||||
{
|
{
|
||||||
@ -737,7 +737,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Union with two types
|
* @see it('Union with two types')
|
||||||
*/
|
*/
|
||||||
public function testUnionWithTwoTypes()
|
public function testUnionWithTwoTypes()
|
||||||
{
|
{
|
||||||
@ -767,7 +767,7 @@ type Hello {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Union with two types and leading pipe
|
* @see it('Union with two types and leading pipe')
|
||||||
*/
|
*/
|
||||||
public function testUnionWithTwoTypesAndLeadingPipe()
|
public function testUnionWithTwoTypesAndLeadingPipe()
|
||||||
{
|
{
|
||||||
@ -794,7 +794,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Union fails with no types
|
* @see it('Union fails with no types')
|
||||||
*/
|
*/
|
||||||
public function testUnionFailsWithNoTypes()
|
public function testUnionFailsWithNoTypes()
|
||||||
{
|
{
|
||||||
@ -806,7 +806,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Union fails with leading douple pipe
|
* @see it('Union fails with leading douple pipe')
|
||||||
*/
|
*/
|
||||||
public function testUnionFailsWithLeadingDoublePipe()
|
public function testUnionFailsWithLeadingDoublePipe()
|
||||||
{
|
{
|
||||||
@ -818,7 +818,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Union fails with double pipe
|
* @see it('Union fails with double pipe')
|
||||||
*/
|
*/
|
||||||
public function testUnionFailsWithDoublePipe()
|
public function testUnionFailsWithDoublePipe()
|
||||||
{
|
{
|
||||||
@ -830,7 +830,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Union fails with trailing pipe
|
* @see it('Union fails with trailing pipe')
|
||||||
*/
|
*/
|
||||||
public function testUnionFailsWithTrailingPipe()
|
public function testUnionFailsWithTrailingPipe()
|
||||||
{
|
{
|
||||||
@ -842,7 +842,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Scalar
|
* @see it('Scalar')
|
||||||
*/
|
*/
|
||||||
public function testScalar()
|
public function testScalar()
|
||||||
{
|
{
|
||||||
@ -866,7 +866,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple input object
|
* @see it('Simple input object')
|
||||||
*/
|
*/
|
||||||
public function testSimpleInputObject()
|
public function testSimpleInputObject()
|
||||||
{
|
{
|
||||||
@ -902,7 +902,7 @@ input Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple input object with args should fail
|
* @see it('Simple input object with args should fail')
|
||||||
*/
|
*/
|
||||||
public function testSimpleInputObjectWithArgsShouldFail()
|
public function testSimpleInputObjectWithArgsShouldFail()
|
||||||
{
|
{
|
||||||
@ -918,7 +918,7 @@ input Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Directive with incorrect locations
|
* @see it('Directive with incorrect locations')
|
||||||
*/
|
*/
|
||||||
public function testDirectiveWithIncorrectLocationShouldFail()
|
public function testDirectiveWithIncorrectLocationShouldFail()
|
||||||
{
|
{
|
||||||
@ -939,7 +939,7 @@ input Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Option: allowLegacySDLEmptyFields supports type with empty fields
|
* @see it('Option: allowLegacySDLEmptyFields supports type with empty fields')
|
||||||
*/
|
*/
|
||||||
public function testAllowLegacySDLEmptyFieldsOption()
|
public function testAllowLegacySDLEmptyFieldsOption()
|
||||||
{
|
{
|
||||||
@ -962,7 +962,7 @@ input Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Option: allowLegacySDLImplementsInterfaces
|
* @see it('Option: allowLegacySDLImplementsInterfaces')
|
||||||
*/
|
*/
|
||||||
public function testDefaultSDLImplementsInterfaces()
|
public function testDefaultSDLImplementsInterfaces()
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ use Throwable;
|
|||||||
class SchemaPrinterTest extends TestCase
|
class SchemaPrinterTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @it prints minimal ast
|
* @see it('prints minimal ast')
|
||||||
*/
|
*/
|
||||||
public function testPrintsMinimalAst()
|
public function testPrintsMinimalAst()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class SchemaPrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it produces helpful error messages
|
* @see it('produces helpful error messages')
|
||||||
*/
|
*/
|
||||||
public function testProducesHelpfulErrorMessages()
|
public function testProducesHelpfulErrorMessages()
|
||||||
{
|
{
|
||||||
@ -35,7 +35,7 @@ class SchemaPrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not alter ast
|
* @see it('does not alter ast')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAlterAst()
|
public function testDoesNotAlterAst()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
// Basic Introspection
|
// Basic Introspection
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for types
|
* @see it('Allows querying the schema for types')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingTheSchemaForTypes()
|
public function testAllowsQueryingTheSchemaForTypes()
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for query type
|
* @see it('Allows querying the schema for query type')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingTheSchemaForQueryType()
|
public function testAllowsQueryingTheSchemaForQueryType()
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for a specific type
|
* @see it('Allows querying the schema for a specific type')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingTheSchemaForASpecificType()
|
public function testAllowsQueryingTheSchemaForASpecificType()
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for an object kind
|
* @see it('Allows querying the schema for an object kind')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingForAnObjectKind()
|
public function testAllowsQueryingForAnObjectKind()
|
||||||
{
|
{
|
||||||
@ -117,7 +117,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for an interface kind
|
* @see it('Allows querying the schema for an interface kind')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingForInterfaceKind()
|
public function testAllowsQueryingForInterfaceKind()
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for object fields
|
* @see it('Allows querying the schema for object fields')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingForObjectFields()
|
public function testAllowsQueryingForObjectFields()
|
||||||
{
|
{
|
||||||
@ -210,7 +210,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for nested object fields
|
* @see it('Allows querying the schema for nested object fields')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingTheSchemaForNestedObjectFields()
|
public function testAllowsQueryingTheSchemaForNestedObjectFields()
|
||||||
{
|
{
|
||||||
@ -300,7 +300,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for field args
|
* @see it('Allows querying the schema for field args')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingTheSchemaForFieldArgs()
|
public function testAllowsQueryingTheSchemaForFieldArgs()
|
||||||
{
|
{
|
||||||
@ -394,7 +394,7 @@ class StarWarsIntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows querying the schema for documentation
|
* @see it('Allows querying the schema for documentation')
|
||||||
*/
|
*/
|
||||||
public function testAllowsQueryingTheSchemaForDocumentation()
|
public function testAllowsQueryingTheSchemaForDocumentation()
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
// Basic Queries
|
// Basic Queries
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Correctly identifies R2-D2 as the hero of the Star Wars Saga
|
* @see it('Correctly identifies R2-D2 as the hero of the Star Wars Saga')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyIdentifiesR2D2AsTheHeroOfTheStarWarsSaga()
|
public function testCorrectlyIdentifiesR2D2AsTheHeroOfTheStarWarsSaga()
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to query for the ID and friends of R2-D2
|
* @see it('Allows us to query for the ID and friends of R2-D2')
|
||||||
*/
|
*/
|
||||||
public function testAllowsUsToQueryForTheIDAndFriendsOfR2D2()
|
public function testAllowsUsToQueryForTheIDAndFriendsOfR2D2()
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
// Describe: Nested Queries
|
// Describe: Nested Queries
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to query for the friends of friends of R2-D2
|
* @see it('Allows us to query for the friends of friends of R2-D2')
|
||||||
*/
|
*/
|
||||||
public function testAllowsUsToQueryForTheFriendsOfFriendsOfR2D2()
|
public function testAllowsUsToQueryForTheFriendsOfFriendsOfR2D2()
|
||||||
{
|
{
|
||||||
@ -130,7 +130,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
// Describe: Using IDs and query parameters to refetch objects
|
// Describe: Using IDs and query parameters to refetch objects
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Using IDs and query parameters to refetch objects
|
* @see it('Using IDs and query parameters to refetch objects')
|
||||||
*/
|
*/
|
||||||
public function testAllowsUsToQueryForLukeSkywalkerDirectlyUsingHisID()
|
public function testAllowsUsToQueryForLukeSkywalkerDirectlyUsingHisID()
|
||||||
{
|
{
|
||||||
@ -151,7 +151,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to create a generic query, then use it to fetch Luke Skywalker using his ID
|
* @see it('Allows us to create a generic query, then use it to fetch Luke Skywalker using his ID')
|
||||||
*/
|
*/
|
||||||
public function testGenericQueryToGetLukeSkywalkerById()
|
public function testGenericQueryToGetLukeSkywalkerById()
|
||||||
{
|
{
|
||||||
@ -175,7 +175,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to create a generic query, then use it to fetch Han Solo using his ID
|
* @see it('Allows us to create a generic query, then use it to fetch Han Solo using his ID')
|
||||||
*/
|
*/
|
||||||
public function testGenericQueryToGetHanSoloById()
|
public function testGenericQueryToGetHanSoloById()
|
||||||
{
|
{
|
||||||
@ -198,7 +198,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to create a generic query, then pass an invalid ID to get null back
|
* @see it('Allows us to create a generic query, then pass an invalid ID to get null back')
|
||||||
*/
|
*/
|
||||||
public function testGenericQueryWithInvalidId()
|
public function testGenericQueryWithInvalidId()
|
||||||
{
|
{
|
||||||
@ -221,7 +221,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
// Using aliases to change the key in the response
|
// Using aliases to change the key in the response
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to query for Luke, changing his key with an alias
|
* @see it('Allows us to query for Luke, changing his key with an alias')
|
||||||
*/
|
*/
|
||||||
function testLukeKeyAlias()
|
function testLukeKeyAlias()
|
||||||
{
|
{
|
||||||
@ -241,7 +241,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to query for both Luke and Leia, using two root fields and an alias
|
* @see it('Allows us to query for both Luke and Leia, using two root fields and an alias')
|
||||||
*/
|
*/
|
||||||
function testTwoRootKeysAsAnAlias()
|
function testTwoRootKeysAsAnAlias()
|
||||||
{
|
{
|
||||||
@ -269,7 +269,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
// Uses fragments to express more complex queries
|
// Uses fragments to express more complex queries
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to query using duplicated content
|
* @see it('Allows us to query using duplicated content')
|
||||||
*/
|
*/
|
||||||
function testQueryUsingDuplicatedContent()
|
function testQueryUsingDuplicatedContent()
|
||||||
{
|
{
|
||||||
@ -299,7 +299,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to use a fragment to avoid duplicating content
|
* @see it('Allows us to use a fragment to avoid duplicating content')
|
||||||
*/
|
*/
|
||||||
function testUsingFragment()
|
function testUsingFragment()
|
||||||
{
|
{
|
||||||
@ -333,7 +333,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Using __typename to find the type of an object
|
* @see it('Using __typename to find the type of an object')
|
||||||
*/
|
*/
|
||||||
public function testVerifyThatR2D2IsADroid()
|
public function testVerifyThatR2D2IsADroid()
|
||||||
{
|
{
|
||||||
@ -355,7 +355,7 @@ class StarWarsQueryTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows us to verify that Luke is a human
|
* @see it('Allows us to verify that Luke is a human')
|
||||||
*/
|
*/
|
||||||
public function testVerifyThatLukeIsHuman()
|
public function testVerifyThatLukeIsHuman()
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
// Basic Queries
|
// Basic Queries
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Validates a complex but valid query
|
* @see it('Validates a complex but valid query')
|
||||||
*/
|
*/
|
||||||
public function testValidatesAComplexButValidQuery()
|
public function testValidatesAComplexButValidQuery()
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Notes that non-existent fields are invalid
|
* @see it('Notes that non-existent fields are invalid')
|
||||||
*/
|
*/
|
||||||
public function testThatNonExistentFieldsAreInvalid()
|
public function testThatNonExistentFieldsAreInvalid()
|
||||||
{
|
{
|
||||||
@ -54,7 +54,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Requires fields on objects
|
* @see it('Requires fields on objects')
|
||||||
*/
|
*/
|
||||||
public function testRequiresFieldsOnObjects()
|
public function testRequiresFieldsOnObjects()
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Disallows fields on scalars
|
* @see it('Disallows fields on scalars')
|
||||||
*/
|
*/
|
||||||
public function testDisallowsFieldsOnScalars()
|
public function testDisallowsFieldsOnScalars()
|
||||||
{
|
{
|
||||||
@ -87,7 +87,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Disallows object fields on interfaces
|
* @see it('Disallows object fields on interfaces')
|
||||||
*/
|
*/
|
||||||
public function testDisallowsObjectFieldsOnInterfaces()
|
public function testDisallowsObjectFieldsOnInterfaces()
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows object fields in fragments
|
* @see it('Allows object fields in fragments')
|
||||||
*/
|
*/
|
||||||
public function testAllowsObjectFieldsInFragments()
|
public function testAllowsObjectFieldsInFragments()
|
||||||
{
|
{
|
||||||
@ -125,7 +125,7 @@ class StarWarsValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows object fields in inline fragments
|
* @see it('Allows object fields in inline fragments')
|
||||||
*/
|
*/
|
||||||
public function testAllowsObjectFieldsInInlineFragments()
|
public function testAllowsObjectFieldsInInlineFragments()
|
||||||
{
|
{
|
||||||
|
@ -170,7 +170,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Example
|
// Type System: Example
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it defines a query only schema
|
* @see it('defines a query only schema')
|
||||||
*/
|
*/
|
||||||
public function testDefinesAQueryOnlySchema()
|
public function testDefinesAQueryOnlySchema()
|
||||||
{
|
{
|
||||||
@ -214,7 +214,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it defines a mutation schema
|
* @see it('defines a mutation schema')
|
||||||
*/
|
*/
|
||||||
public function testDefinesAMutationSchema()
|
public function testDefinesAMutationSchema()
|
||||||
{
|
{
|
||||||
@ -233,7 +233,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it defines a subscription schema
|
* @see it('defines a subscription schema')
|
||||||
*/
|
*/
|
||||||
public function testDefinesSubscriptionSchema()
|
public function testDefinesSubscriptionSchema()
|
||||||
{
|
{
|
||||||
@ -251,7 +251,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it defines an enum type with deprecated value
|
* @see it('defines an enum type with deprecated value')
|
||||||
*/
|
*/
|
||||||
public function testDefinesEnumTypeWithDeprecatedValue()
|
public function testDefinesEnumTypeWithDeprecatedValue()
|
||||||
{
|
{
|
||||||
@ -276,7 +276,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it defines an enum type with a value of `null` and `undefined`
|
* @see it('defines an enum type with a value of `null` and `undefined`')
|
||||||
*/
|
*/
|
||||||
public function testDefinesAnEnumTypeWithAValueOfNullAndUndefined()
|
public function testDefinesAnEnumTypeWithAValueOfNullAndUndefined()
|
||||||
{
|
{
|
||||||
@ -313,7 +313,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it defines an object type with deprecated field
|
* @see it('defines an object type with deprecated field')
|
||||||
*/
|
*/
|
||||||
public function testDefinesAnObjectTypeWithDeprecatedField()
|
public function testDefinesAnObjectTypeWithDeprecatedField()
|
||||||
{
|
{
|
||||||
@ -337,7 +337,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it includes nested input objects in the map
|
* @see it('includes nested input objects in the map')
|
||||||
*/
|
*/
|
||||||
public function testIncludesNestedInputObjectInTheMap()
|
public function testIncludesNestedInputObjectInTheMap()
|
||||||
{
|
{
|
||||||
@ -367,7 +367,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it includes interface possible types in the type map
|
* @see it('includes interface possible types in the type map')
|
||||||
*/
|
*/
|
||||||
public function testIncludesInterfaceSubtypesInTheTypeMap()
|
public function testIncludesInterfaceSubtypesInTheTypeMap()
|
||||||
{
|
{
|
||||||
@ -399,7 +399,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it includes interfaces' thunk subtypes in the type map
|
* @see it('includes interfaces' thunk subtypes in the type map')
|
||||||
*/
|
*/
|
||||||
public function testIncludesInterfacesThunkSubtypesInTheTypeMap()
|
public function testIncludesInterfacesThunkSubtypesInTheTypeMap()
|
||||||
{
|
{
|
||||||
@ -434,7 +434,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it stringifies simple types
|
* @see it('stringifies simple types')
|
||||||
*/
|
*/
|
||||||
public function testStringifiesSimpleTypes()
|
public function testStringifiesSimpleTypes()
|
||||||
{
|
{
|
||||||
@ -455,7 +455,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it JSON stringifies simple types
|
* @see it('JSON stringifies simple types')
|
||||||
*/
|
*/
|
||||||
public function testJSONStringifiesSimpleTypes()
|
public function testJSONStringifiesSimpleTypes()
|
||||||
{
|
{
|
||||||
@ -473,7 +473,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identifies input types
|
* @see it('identifies input types')
|
||||||
*/
|
*/
|
||||||
public function testIdentifiesInputTypes()
|
public function testIdentifiesInputTypes()
|
||||||
{
|
{
|
||||||
@ -492,7 +492,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identifies output types
|
* @see it('identifies output types')
|
||||||
*/
|
*/
|
||||||
public function testIdentifiesOutputTypes()
|
public function testIdentifiesOutputTypes()
|
||||||
{
|
{
|
||||||
@ -511,7 +511,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it prohibits nesting NonNull inside NonNull
|
* @see it('prohibits nesting NonNull inside NonNull')
|
||||||
*/
|
*/
|
||||||
public function testProhibitsNestingNonNullInsideNonNull()
|
public function testProhibitsNestingNonNullInsideNonNull()
|
||||||
{
|
{
|
||||||
@ -523,7 +523,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows a thunk for Union member types
|
* @see it('allows a thunk for Union member types')
|
||||||
*/
|
*/
|
||||||
public function testAllowsThunkForUnionTypes()
|
public function testAllowsThunkForUnionTypes()
|
||||||
{
|
{
|
||||||
@ -744,7 +744,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Field config must be object
|
// Field config must be object
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object type with a field function
|
* @see it('accepts an Object type with a field function')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectTypeWithAFieldFunction()
|
public function testAcceptsAnObjectTypeWithAFieldFunction()
|
||||||
{
|
{
|
||||||
@ -761,7 +761,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type field with undefined config
|
* @see it('rejects an Object type field with undefined config')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeFieldWithUndefinedConfig()
|
public function testRejectsAnObjectTypeFieldWithUndefinedConfig()
|
||||||
{
|
{
|
||||||
@ -779,7 +779,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with incorrectly typed fields
|
* @see it('rejects an Object type with incorrectly typed fields')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithIncorrectlyTypedFields()
|
public function testRejectsAnObjectTypeWithIncorrectlyTypedFields()
|
||||||
{
|
{
|
||||||
@ -796,7 +796,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with a field function that returns incorrect type
|
* @see it('rejects an Object type with a field function that returns incorrect type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithAFieldFunctionThatReturnsIncorrectType()
|
public function testRejectsAnObjectTypeWithAFieldFunctionThatReturnsIncorrectType()
|
||||||
{
|
{
|
||||||
@ -817,7 +817,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Field arg config must be object
|
// Field arg config must be object
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object type with field args
|
* @see it('accepts an Object type with field args')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectTypeWithFieldArgs()
|
public function testAcceptsAnObjectTypeWithFieldArgs()
|
||||||
{
|
{
|
||||||
@ -840,7 +840,7 @@ class DefinitionTest extends TestCase
|
|||||||
// rejects an Object type with incorrectly typed field args
|
// rejects an Object type with incorrectly typed field args
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow isDeprecated without deprecationReason on field
|
* @see it('does not allow isDeprecated without deprecationReason on field')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowIsDeprecatedWithoutDeprecationReasonOnField()
|
public function testDoesNotAllowIsDeprecatedWithoutDeprecationReasonOnField()
|
||||||
{
|
{
|
||||||
@ -864,7 +864,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Object interfaces must be array
|
// Object interfaces must be array
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object type with array interfaces
|
* @see it('accepts an Object type with array interfaces')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectTypeWithArrayInterfaces()
|
public function testAcceptsAnObjectTypeWithArrayInterfaces()
|
||||||
{
|
{
|
||||||
@ -877,7 +877,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object type with interfaces as a function returning an array
|
* @see it('accepts an Object type with interfaces as a function returning an array')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectTypeWithInterfacesAsAFunctionReturningAnArray()
|
public function testAcceptsAnObjectTypeWithInterfacesAsAFunctionReturningAnArray()
|
||||||
{
|
{
|
||||||
@ -892,7 +892,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with incorrectly typed interfaces
|
* @see it('rejects an Object type with incorrectly typed interfaces')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithIncorrectlyTypedInterfaces()
|
public function testRejectsAnObjectTypeWithIncorrectlyTypedInterfaces()
|
||||||
{
|
{
|
||||||
@ -909,7 +909,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with interfaces as a function returning an incorrect type
|
* @see it('rejects an Object type with interfaces as a function returning an incorrect type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithInterfacesAsAFunctionReturningAnIncorrectType()
|
public function testRejectsAnObjectTypeWithInterfacesAsAFunctionReturningAnIncorrectType()
|
||||||
{
|
{
|
||||||
@ -954,7 +954,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a lambda as an Object field resolver
|
* @see it('accepts a lambda as an Object field resolver')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsALambdaAsAnObjectFieldResolver()
|
public function testAcceptsALambdaAsAnObjectFieldResolver()
|
||||||
{
|
{
|
||||||
@ -964,7 +964,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an empty Object field resolver
|
* @see it('rejects an empty Object field resolver')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEmptyObjectFieldResolver()
|
public function testRejectsAnEmptyObjectFieldResolver()
|
||||||
{
|
{
|
||||||
@ -976,7 +976,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a constant scalar value resolver
|
* @see it('rejects a constant scalar value resolver')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAConstantScalarValueResolver()
|
public function testRejectsAConstantScalarValueResolver()
|
||||||
{
|
{
|
||||||
@ -1003,7 +1003,7 @@ class DefinitionTest extends TestCase
|
|||||||
return $schema;
|
return $schema;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @it accepts an Interface type defining resolveType
|
* @see it('accepts an Interface type defining resolveType')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInterfaceTypeDefiningResolveType()
|
public function testAcceptsAnInterfaceTypeDefiningResolveType()
|
||||||
{
|
{
|
||||||
@ -1024,7 +1024,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Interface with implementing type defining isTypeOf
|
* @see it('accepts an Interface with implementing type defining isTypeOf')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInterfaceWithImplementingTypeDefiningIsTypeOf()
|
public function testAcceptsAnInterfaceWithImplementingTypeDefiningIsTypeOf()
|
||||||
{
|
{
|
||||||
@ -1045,7 +1045,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Interface type defining resolveType with implementing type defining isTypeOf
|
* @see it('accepts an Interface type defining resolveType with implementing type defining isTypeOf')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInterfaceTypeDefiningResolveTypeWithImplementingTypeDefiningIsTypeOf()
|
public function testAcceptsAnInterfaceTypeDefiningResolveTypeWithImplementingTypeDefiningIsTypeOf()
|
||||||
{
|
{
|
||||||
@ -1066,7 +1066,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Interface type with an incorrect type for resolveType
|
* @see it('rejects an Interface type with an incorrect type for resolveType')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInterfaceTypeWithAnIncorrectTypeForResolveType()
|
public function testRejectsAnInterfaceTypeWithAnIncorrectTypeForResolveType()
|
||||||
{
|
{
|
||||||
@ -1094,7 +1094,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Union type defining resolveType
|
* @see it('accepts a Union type defining resolveType')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAUnionTypeDefiningResolveType()
|
public function testAcceptsAUnionTypeDefiningResolveType()
|
||||||
{
|
{
|
||||||
@ -1109,7 +1109,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Union of Object types defining isTypeOf
|
* @see it('accepts a Union of Object types defining isTypeOf')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAUnionOfObjectTypesDefiningIsTypeOf()
|
public function testAcceptsAUnionOfObjectTypesDefiningIsTypeOf()
|
||||||
{
|
{
|
||||||
@ -1124,7 +1124,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Union type defining resolveType of Object types defining isTypeOf
|
* @see it('accepts a Union type defining resolveType of Object types defining isTypeOf')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAUnionTypeDefiningResolveTypeOfObjectTypesDefiningIsTypeOf()
|
public function testAcceptsAUnionTypeDefiningResolveTypeOfObjectTypesDefiningIsTypeOf()
|
||||||
{
|
{
|
||||||
@ -1139,7 +1139,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Union type with an incorrect type for resolveType
|
* @see it('rejects an Union type with an incorrect type for resolveType')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnUnionTypeWithAnIncorrectTypeForResolveType()
|
public function testRejectsAnUnionTypeWithAnIncorrectTypeForResolveType()
|
||||||
{
|
{
|
||||||
@ -1159,7 +1159,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Scalar types must be serializable
|
// Type System: Scalar types must be serializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Scalar type defining serialize
|
* @see it('accepts a Scalar type defining serialize')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAScalarTypeDefiningSerialize()
|
public function testAcceptsAScalarTypeDefiningSerialize()
|
||||||
{
|
{
|
||||||
@ -1176,7 +1176,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Scalar type not defining serialize
|
* @see it('rejects a Scalar type not defining serialize')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAScalarTypeNotDefiningSerialize()
|
public function testRejectsAScalarTypeNotDefiningSerialize()
|
||||||
{
|
{
|
||||||
@ -1194,7 +1194,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Scalar type defining serialize with an incorrect type
|
* @see it('rejects a Scalar type defining serialize with an incorrect type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAScalarTypeDefiningSerializeWithAnIncorrectType()
|
public function testRejectsAScalarTypeDefiningSerializeWithAnIncorrectType()
|
||||||
{
|
{
|
||||||
@ -1213,7 +1213,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Scalar type defining parseValue and parseLiteral
|
* @see it('accepts a Scalar type defining parseValue and parseLiteral')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAScalarTypeDefiningParseValueAndParseLiteral()
|
public function testAcceptsAScalarTypeDefiningParseValueAndParseLiteral()
|
||||||
{
|
{
|
||||||
@ -1233,7 +1233,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Scalar type defining parseValue but not parseLiteral
|
* @see it('rejects a Scalar type defining parseValue but not parseLiteral')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAScalarTypeDefiningParseValueButNotParseLiteral()
|
public function testRejectsAScalarTypeDefiningParseValueButNotParseLiteral()
|
||||||
{
|
{
|
||||||
@ -1253,7 +1253,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Scalar type defining parseLiteral but not parseValue
|
* @see it('rejects a Scalar type defining parseLiteral but not parseValue')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAScalarTypeDefiningParseLiteralButNotParseValue()
|
public function testRejectsAScalarTypeDefiningParseLiteralButNotParseValue()
|
||||||
{
|
{
|
||||||
@ -1273,7 +1273,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Scalar type defining parseValue and parseLiteral with an incorrect type
|
* @see it('rejects a Scalar type defining parseValue and parseLiteral with an incorrect type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAScalarTypeDefiningParseValueAndParseLiteralWithAnIncorrectType()
|
public function testRejectsAScalarTypeDefiningParseValueAndParseLiteralWithAnIncorrectType()
|
||||||
{
|
{
|
||||||
@ -1295,7 +1295,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Object types must be assertable
|
// Type System: Object types must be assertable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object type with an isTypeOf function
|
* @see it('accepts an Object type with an isTypeOf function')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectTypeWithAnIsTypeOfFunction()
|
public function testAcceptsAnObjectTypeWithAnIsTypeOfFunction()
|
||||||
{
|
{
|
||||||
@ -1310,7 +1310,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with an incorrect type for isTypeOf
|
* @see it('rejects an Object type with an incorrect type for isTypeOf')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithAnIncorrectTypeForIsTypeOf()
|
public function testRejectsAnObjectTypeWithAnIncorrectTypeForIsTypeOf()
|
||||||
{
|
{
|
||||||
@ -1330,7 +1330,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Union types must be array
|
// Type System: Union types must be array
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Union type with array types
|
* @see it('accepts a Union type with array types')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAUnionTypeWithArrayTypes()
|
public function testAcceptsAUnionTypeWithArrayTypes()
|
||||||
{
|
{
|
||||||
@ -1345,7 +1345,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Union type with function returning an array of types
|
* @see it('accepts a Union type with function returning an array of types')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAUnionTypeWithFunctionReturningAnArrayOfTypes()
|
public function testAcceptsAUnionTypeWithFunctionReturningAnArrayOfTypes()
|
||||||
{
|
{
|
||||||
@ -1361,7 +1361,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Union type without types
|
* @see it('rejects a Union type without types')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAUnionTypeWithoutTypes()
|
public function testRejectsAUnionTypeWithoutTypes()
|
||||||
{
|
{
|
||||||
@ -1377,7 +1377,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Union type with incorrectly typed types
|
* @see it('rejects a Union type with incorrectly typed types')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAUnionTypeWithIncorrectlyTypedTypes()
|
public function testRejectsAUnionTypeWithIncorrectlyTypedTypes()
|
||||||
{
|
{
|
||||||
@ -1396,7 +1396,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Input Objects must have fields
|
// Type System: Input Objects must have fields
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Input Object type with fields
|
* @see it('accepts an Input Object type with fields')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInputObjectTypeWithFields()
|
public function testAcceptsAnInputObjectTypeWithFields()
|
||||||
{
|
{
|
||||||
@ -1411,7 +1411,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Input Object type with a field function
|
* @see it('accepts an Input Object type with a field function')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInputObjectTypeWithAFieldFunction()
|
public function testAcceptsAnInputObjectTypeWithAFieldFunction()
|
||||||
{
|
{
|
||||||
@ -1428,7 +1428,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Input Object type with incorrect fields
|
* @see it('rejects an Input Object type with incorrect fields')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInputObjectTypeWithIncorrectFields()
|
public function testRejectsAnInputObjectTypeWithIncorrectFields()
|
||||||
{
|
{
|
||||||
@ -1445,7 +1445,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Input Object type with fields function that returns incorrect type
|
* @see it('rejects an Input Object type with fields function that returns incorrect type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInputObjectTypeWithFieldsFunctionThatReturnsIncorrectType()
|
public function testRejectsAnInputObjectTypeWithFieldsFunctionThatReturnsIncorrectType()
|
||||||
{
|
{
|
||||||
@ -1466,7 +1466,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Input Object fields must not have resolvers
|
// Type System: Input Object fields must not have resolvers
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Input Object type with resolvers
|
* @see it('rejects an Input Object type with resolvers')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInputObjectTypeWithResolvers()
|
public function testRejectsAnInputObjectTypeWithResolvers()
|
||||||
{
|
{
|
||||||
@ -1490,7 +1490,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Input Object type with resolver constant
|
* @see it('rejects an Input Object type with resolver constant')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInputObjectTypeWithResolverConstant()
|
public function testRejectsAnInputObjectTypeWithResolverConstant()
|
||||||
{
|
{
|
||||||
@ -1514,7 +1514,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: Enum types must be well defined
|
// Type System: Enum types must be well defined
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a well defined Enum type with empty value definition
|
* @see it('accepts a well defined Enum type with empty value definition')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAWellDefinedEnumTypeWithEmptyValueDefinition()
|
public function testAcceptsAWellDefinedEnumTypeWithEmptyValueDefinition()
|
||||||
{
|
{
|
||||||
@ -1530,7 +1530,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a well defined Enum type with internal value definition
|
* @see it('accepts a well defined Enum type with internal value definition')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAWellDefinedEnumTypeWithInternalValueDefinition()
|
public function testAcceptsAWellDefinedEnumTypeWithInternalValueDefinition()
|
||||||
{
|
{
|
||||||
@ -1546,7 +1546,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Enum type with incorrectly typed values
|
* @see it('rejects an Enum type with incorrectly typed values')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEnumTypeWithIncorrectlyTypedValues()
|
public function testRejectsAnEnumTypeWithIncorrectlyTypedValues()
|
||||||
{
|
{
|
||||||
@ -1562,7 +1562,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not allow isDeprecated without deprecationReason on enum
|
* @see it('does not allow isDeprecated without deprecationReason on enum')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAllowIsDeprecatedWithoutDeprecationReasonOnEnum()
|
public function testDoesNotAllowIsDeprecatedWithoutDeprecationReasonOnEnum()
|
||||||
{
|
{
|
||||||
@ -1661,7 +1661,7 @@ class DefinitionTest extends TestCase
|
|||||||
// Type System: A Schema must contain uniquely named types
|
// Type System: A Schema must contain uniquely named types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema which redefines a built-in type
|
* @see it('rejects a Schema which redefines a built-in type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhichRedefinesABuiltInType()
|
public function testRejectsASchemaWhichRedefinesABuiltInType()
|
||||||
{
|
{
|
||||||
@ -1689,7 +1689,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema which defines an object type twice
|
* @see it('rejects a Schema which defines an object type twice')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhichDefinesAnObjectTypeTwice()
|
public function testRejectsASchemaWhichDefinesAnObjectTypeTwice()
|
||||||
{
|
{
|
||||||
@ -1720,7 +1720,7 @@ class DefinitionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema which have same named objects implementing an interface
|
* @see it('rejects a Schema which have same named objects implementing an interface')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhichHaveSameNamedObjectsImplementingAnInterface()
|
public function testRejectsASchemaWhichHaveSameNamedObjectsImplementingAnInterface()
|
||||||
{
|
{
|
||||||
|
@ -180,7 +180,7 @@ class EnumTypeTest extends TestCase
|
|||||||
// Describe: Type System: Enum Values
|
// Describe: Type System: Enum Values
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts enum literals as input
|
* @see it('accepts enum literals as input')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsEnumLiteralsAsInput()
|
public function testAcceptsEnumLiteralsAsInput()
|
||||||
{
|
{
|
||||||
@ -191,7 +191,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it enum may be output type
|
* @see it('enum may be output type')
|
||||||
*/
|
*/
|
||||||
public function testEnumMayBeOutputType()
|
public function testEnumMayBeOutputType()
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it enum may be both input and output type
|
* @see it('enum may be both input and output type')
|
||||||
*/
|
*/
|
||||||
public function testEnumMayBeBothInputAndOutputType()
|
public function testEnumMayBeBothInputAndOutputType()
|
||||||
{
|
{
|
||||||
@ -213,7 +213,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept string literals
|
* @see it('does not accept string literals')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptStringLiterals()
|
public function testDoesNotAcceptStringLiterals()
|
||||||
{
|
{
|
||||||
@ -228,7 +228,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept valuesNotInTheEnum
|
* @see it('does not accept valuesNotInTheEnum')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptValuesNotInTheEnum()
|
public function testDoesNotAcceptValuesNotInTheEnum()
|
||||||
{
|
{
|
||||||
@ -243,7 +243,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept values with incorrect casing
|
* @see it('does not accept values with incorrect casing')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptValuesWithIncorrectCasing()
|
public function testDoesNotAcceptValuesWithIncorrectCasing()
|
||||||
{
|
{
|
||||||
@ -258,7 +258,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept incorrect internal value
|
* @see it('does not accept incorrect internal value')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptIncorrectInternalValue()
|
public function testDoesNotAcceptIncorrectInternalValue()
|
||||||
{
|
{
|
||||||
@ -274,7 +274,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept internal value in place of enum literal
|
* @see it('does not accept internal value in place of enum literal')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptInternalValueInPlaceOfEnumLiteral()
|
public function testDoesNotAcceptInternalValueInPlaceOfEnumLiteral()
|
||||||
{
|
{
|
||||||
@ -286,7 +286,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept enum literal in place of int
|
* @see it('does not accept enum literal in place of int')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptEnumLiteralInPlaceOfInt()
|
public function testDoesNotAcceptEnumLiteralInPlaceOfInt()
|
||||||
{
|
{
|
||||||
@ -298,7 +298,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts JSON string as enum variable
|
* @see it('accepts JSON string as enum variable')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsJSONStringAsEnumVariable()
|
public function testAcceptsJSONStringAsEnumVariable()
|
||||||
{
|
{
|
||||||
@ -315,7 +315,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts enum literals as input arguments to mutations
|
* @see it('accepts enum literals as input arguments to mutations')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsEnumLiteralsAsInputArgumentsToMutations()
|
public function testAcceptsEnumLiteralsAsInputArgumentsToMutations()
|
||||||
{
|
{
|
||||||
@ -332,7 +332,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts enum literals as input arguments to subscriptions
|
* @see it('accepts enum literals as input arguments to subscriptions')
|
||||||
* @todo
|
* @todo
|
||||||
*/
|
*/
|
||||||
public function testAcceptsEnumLiteralsAsInputArgumentsToSubscriptions()
|
public function testAcceptsEnumLiteralsAsInputArgumentsToSubscriptions()
|
||||||
@ -350,7 +350,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept internal value as enum variable
|
* @see it('does not accept internal value as enum variable')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptInternalValueAsEnumVariable()
|
public function testDoesNotAcceptInternalValueAsEnumVariable()
|
||||||
{
|
{
|
||||||
@ -362,7 +362,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept string variables as enum input
|
* @see it('does not accept string variables as enum input')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptStringVariablesAsEnumInput()
|
public function testDoesNotAcceptStringVariablesAsEnumInput()
|
||||||
{
|
{
|
||||||
@ -374,7 +374,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not accept internal value variable as enum input
|
* @see it('does not accept internal value variable as enum input')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotAcceptInternalValueVariableSsEnumInput()
|
public function testDoesNotAcceptInternalValueVariableSsEnumInput()
|
||||||
{
|
{
|
||||||
@ -386,7 +386,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it enum value may have an internal value of 0
|
* @see it('enum value may have an internal value of 0')
|
||||||
*/
|
*/
|
||||||
public function testEnumValueMayHaveAnInternalValueOf0()
|
public function testEnumValueMayHaveAnInternalValueOf0()
|
||||||
{
|
{
|
||||||
@ -400,7 +400,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it enum inputs may be nullable
|
* @see it('enum inputs may be nullable')
|
||||||
*/
|
*/
|
||||||
public function testEnumInputsMayBeNullable()
|
public function testEnumInputsMayBeNullable()
|
||||||
{
|
{
|
||||||
@ -414,7 +414,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it presents a getValues() API for complex enums
|
* @see it('presents a getValues() API for complex enums')
|
||||||
*/
|
*/
|
||||||
public function testPresentsGetValuesAPIForComplexEnums()
|
public function testPresentsGetValuesAPIForComplexEnums()
|
||||||
{
|
{
|
||||||
@ -429,7 +429,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it presents a getValue() API for complex enums
|
* @see it('presents a getValue() API for complex enums')
|
||||||
*/
|
*/
|
||||||
public function testPresentsGetValueAPIForComplexEnums()
|
public function testPresentsGetValueAPIForComplexEnums()
|
||||||
{
|
{
|
||||||
@ -442,7 +442,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it may be internally represented with complex values
|
* @see it('may be internally represented with complex values')
|
||||||
*/
|
*/
|
||||||
public function testMayBeInternallyRepresentedWithComplexValues()
|
public function testMayBeInternallyRepresentedWithComplexValues()
|
||||||
{
|
{
|
||||||
@ -471,7 +471,7 @@ class EnumTypeTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it can be introspected without error
|
* @see it('can be introspected without error')
|
||||||
*/
|
*/
|
||||||
public function testCanBeIntrospectedWithoutError()
|
public function testCanBeIntrospectedWithoutError()
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ class IntrospectionTest extends TestCase
|
|||||||
// Describe: Introspection
|
// Describe: Introspection
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it executes an introspection query
|
* @see it('executes an introspection query')
|
||||||
*/
|
*/
|
||||||
function testExecutesAnIntrospectionQuery()
|
function testExecutesAnIntrospectionQuery()
|
||||||
{
|
{
|
||||||
@ -1070,7 +1070,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it introspects on input object
|
* @see it('introspects on input object')
|
||||||
*/
|
*/
|
||||||
function testIntrospectsOnInputObject()
|
function testIntrospectsOnInputObject()
|
||||||
{
|
{
|
||||||
@ -1169,7 +1169,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it supports the __type root field
|
* @see it('supports the __type root field')
|
||||||
*/
|
*/
|
||||||
public function testSupportsThe__typeRootField()
|
public function testSupportsThe__typeRootField()
|
||||||
{
|
{
|
||||||
@ -1202,7 +1202,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identifies deprecated fields
|
* @see it('identifies deprecated fields')
|
||||||
*/
|
*/
|
||||||
public function testIdentifiesDeprecatedFields()
|
public function testIdentifiesDeprecatedFields()
|
||||||
{
|
{
|
||||||
@ -1257,7 +1257,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it respects the includeDeprecated parameter for fields
|
* @see it('respects the includeDeprecated parameter for fields')
|
||||||
*/
|
*/
|
||||||
public function testRespectsTheIncludeDeprecatedParameterForFields()
|
public function testRespectsTheIncludeDeprecatedParameterForFields()
|
||||||
{
|
{
|
||||||
@ -1322,7 +1322,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identifies deprecated enum values
|
* @see it('identifies deprecated enum values')
|
||||||
*/
|
*/
|
||||||
public function testIdentifiesDeprecatedEnumValues()
|
public function testIdentifiesDeprecatedEnumValues()
|
||||||
{
|
{
|
||||||
@ -1386,7 +1386,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it respects the includeDeprecated parameter for enum values
|
* @see it('respects the includeDeprecated parameter for enum values')
|
||||||
*/
|
*/
|
||||||
public function testRespectsTheIncludeDeprecatedParameterForEnumValues()
|
public function testRespectsTheIncludeDeprecatedParameterForEnumValues()
|
||||||
{
|
{
|
||||||
@ -1449,7 +1449,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fails as expected on the __type root field without an arg
|
* @see it('fails as expected on the __type root field without an arg')
|
||||||
*/
|
*/
|
||||||
public function testFailsAsExpectedOnThe__typeRootFieldWithoutAnArg()
|
public function testFailsAsExpectedOnThe__typeRootFieldWithoutAnArg()
|
||||||
{
|
{
|
||||||
@ -1481,7 +1481,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it exposes descriptions on types and fields
|
* @see it('exposes descriptions on types and fields')
|
||||||
*/
|
*/
|
||||||
public function testExposesDescriptionsOnTypesAndFields()
|
public function testExposesDescriptionsOnTypesAndFields()
|
||||||
{
|
{
|
||||||
@ -1541,7 +1541,7 @@ class IntrospectionTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it exposes descriptions on enums
|
* @see it('exposes descriptions on enums')
|
||||||
*/
|
*/
|
||||||
public function testExposesDescriptionsOnEnums()
|
public function testExposesDescriptionsOnEnums()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class ScalarSerializationTest extends TestCase
|
|||||||
// Type System: Scalar coercion
|
// Type System: Scalar coercion
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it serializes output int
|
* @see it('serializes output int')
|
||||||
*/
|
*/
|
||||||
public function testSerializesOutputInt()
|
public function testSerializesOutputInt()
|
||||||
{
|
{
|
||||||
@ -116,7 +116,7 @@ class ScalarSerializationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it serializes output float
|
* @see it('serializes output float')
|
||||||
*/
|
*/
|
||||||
public function testSerializesOutputFloat()
|
public function testSerializesOutputFloat()
|
||||||
{
|
{
|
||||||
@ -151,7 +151,7 @@ class ScalarSerializationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it serializes output strings
|
* @see it('serializes output strings')
|
||||||
*/
|
*/
|
||||||
public function testSerializesOutputStrings()
|
public function testSerializesOutputStrings()
|
||||||
{
|
{
|
||||||
@ -183,7 +183,7 @@ class ScalarSerializationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it serializes output boolean
|
* @see it('serializes output boolean')
|
||||||
*/
|
*/
|
||||||
public function testSerializesOutputBoolean()
|
public function testSerializesOutputBoolean()
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ class SchemaTest extends TestCase
|
|||||||
// Getting possible types
|
// Getting possible types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it throws human-reable error if schema.types is not defined
|
* @see it('throws human-reable error if schema.types is not defined')
|
||||||
*/
|
*/
|
||||||
public function testThrowsHumanReableErrorIfSchemaTypesIsNotDefined()
|
public function testThrowsHumanReableErrorIfSchemaTypesIsNotDefined()
|
||||||
{
|
{
|
||||||
@ -109,7 +109,7 @@ class SchemaTest extends TestCase
|
|||||||
// Type Map
|
// Type Map
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it includes input types only used in directives
|
* @see it('includes input types only used in directives')
|
||||||
*/
|
*/
|
||||||
public function testIncludesInputTypesOnlyUsedInDirectives()
|
public function testIncludesInputTypesOnlyUsedInDirectives()
|
||||||
{
|
{
|
||||||
|
@ -169,7 +169,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: A Schema must have Object root types
|
// DESCRIBE: Type System: A Schema must have Object root types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Schema whose query type is an object type
|
* @see it('accepts a Schema whose query type is an object type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsASchemaWhoseQueryTypeIsAnObjectType()
|
public function testAcceptsASchemaWhoseQueryTypeIsAnObjectType()
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Schema whose query and mutation types are object types
|
* @see it('accepts a Schema whose query and mutation types are object types')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsASchemaWhoseQueryAndMutationTypesAreObjectTypes()
|
public function testAcceptsASchemaWhoseQueryAndMutationTypesAreObjectTypes()
|
||||||
{
|
{
|
||||||
@ -225,7 +225,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Schema whose query and subscription types are object types
|
* @see it('accepts a Schema whose query and subscription types are object types')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsASchemaWhoseQueryAndSubscriptionTypesAreObjectTypes()
|
public function testAcceptsASchemaWhoseQueryAndSubscriptionTypesAreObjectTypes()
|
||||||
{
|
{
|
||||||
@ -258,7 +258,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema without a query type
|
* @see it('rejects a Schema without a query type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWithoutAQueryType()
|
public function testRejectsASchemaWithoutAQueryType()
|
||||||
{
|
{
|
||||||
@ -294,7 +294,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema whose query root type is not an Object type
|
* @see it('rejects a Schema whose query root type is not an Object type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhoseQueryTypeIsNotAnObjectType()
|
public function testRejectsASchemaWhoseQueryTypeIsNotAnObjectType()
|
||||||
{
|
{
|
||||||
@ -333,7 +333,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema whose mutation type is an input type
|
* @see it('rejects a Schema whose mutation type is an input type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhoseMutationTypeIsAnInputType()
|
public function testRejectsASchemaWhoseMutationTypeIsAnInputType()
|
||||||
{
|
{
|
||||||
@ -380,7 +380,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema whose subscription type is an input type
|
* @see it('rejects a Schema whose subscription type is an input type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhoseSubscriptionTypeIsAnInputType()
|
public function testRejectsASchemaWhoseSubscriptionTypeIsAnInputType()
|
||||||
{
|
{
|
||||||
@ -429,7 +429,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Schema whose directives are incorrectly typed
|
* @see it('rejects a Schema whose directives are incorrectly typed')
|
||||||
*/
|
*/
|
||||||
public function testRejectsASchemaWhoseDirectivesAreIncorrectlyTyped()
|
public function testRejectsASchemaWhoseDirectivesAreIncorrectlyTyped()
|
||||||
{
|
{
|
||||||
@ -447,7 +447,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Objects must have fields
|
// DESCRIBE: Type System: Objects must have fields
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object type with fields object
|
* @see it('accepts an Object type with fields object')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectTypeWithFieldsObject()
|
public function testAcceptsAnObjectTypeWithFieldsObject()
|
||||||
{
|
{
|
||||||
@ -465,7 +465,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with missing fields
|
* @see it('rejects an Object type with missing fields')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithMissingFields()
|
public function testRejectsAnObjectTypeWithMissingFields()
|
||||||
{
|
{
|
||||||
@ -511,7 +511,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object type with incorrectly named fields
|
* @see it('rejects an Object type with incorrectly named fields')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectTypeWithIncorrectlyNamedFields()
|
public function testRejectsAnObjectTypeWithIncorrectlyNamedFields()
|
||||||
{
|
{
|
||||||
@ -550,7 +550,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Fields args must be properly named
|
// DESCRIBE: Type System: Fields args must be properly named
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts field args with valid names
|
* @see it('accepts field args with valid names')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsFieldArgsWithValidNames()
|
public function testAcceptsFieldArgsWithValidNames()
|
||||||
{
|
{
|
||||||
@ -569,7 +569,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects field arg with invalid names
|
* @see it('rejects field arg with invalid names')
|
||||||
*/
|
*/
|
||||||
public function testRejectsFieldArgWithInvalidNames()
|
public function testRejectsFieldArgWithInvalidNames()
|
||||||
{
|
{
|
||||||
@ -595,7 +595,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Union types must be valid
|
// DESCRIBE: Type System: Union types must be valid
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts a Union type with member types
|
* @see it('accepts a Union type with member types')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAUnionTypeWithArrayTypes()
|
public function testAcceptsAUnionTypeWithArrayTypes()
|
||||||
{
|
{
|
||||||
@ -621,7 +621,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Union type with empty types
|
* @see it('rejects a Union type with empty types')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAUnionTypeWithEmptyTypes()
|
public function testRejectsAUnionTypeWithEmptyTypes()
|
||||||
{
|
{
|
||||||
@ -642,7 +642,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Union type with duplicated member type
|
* @see it('rejects a Union type with duplicated member type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAUnionTypeWithDuplicatedMemberType()
|
public function testRejectsAUnionTypeWithDuplicatedMemberType()
|
||||||
{
|
{
|
||||||
@ -674,7 +674,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a Union type with non-Object members types
|
* @see it('rejects a Union type with non-Object members types')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAUnionTypeWithNonObjectMembersType()
|
public function testRejectsAUnionTypeWithNonObjectMembersType()
|
||||||
{
|
{
|
||||||
@ -733,7 +733,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Input Objects must have fields
|
// DESCRIBE: Type System: Input Objects must have fields
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Input Object type with fields
|
* @see it('accepts an Input Object type with fields')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInputObjectTypeWithFields()
|
public function testAcceptsAnInputObjectTypeWithFields()
|
||||||
{
|
{
|
||||||
@ -750,7 +750,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Input Object type with missing fields
|
* @see it('rejects an Input Object type with missing fields')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInputObjectTypeWithMissingFields()
|
public function testRejectsAnInputObjectTypeWithMissingFields()
|
||||||
{
|
{
|
||||||
@ -771,7 +771,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Input Object type with incorrectly typed fields
|
* @see it('rejects an Input Object type with incorrectly typed fields')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnInputObjectTypeWithIncorrectlyTypedFields()
|
public function testRejectsAnInputObjectTypeWithIncorrectlyTypedFields()
|
||||||
{
|
{
|
||||||
@ -807,7 +807,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Enum types must be well defined
|
// DESCRIBE: Type System: Enum types must be well defined
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Enum type without values
|
* @see it('rejects an Enum type without values')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEnumTypeWithoutValues()
|
public function testRejectsAnEnumTypeWithoutValues()
|
||||||
{
|
{
|
||||||
@ -828,7 +828,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Enum type with duplicate values
|
* @see it('rejects an Enum type with duplicate values')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEnumTypeWithDuplicateValues()
|
public function testRejectsAnEnumTypeWithDuplicateValues()
|
||||||
{
|
{
|
||||||
@ -889,7 +889,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Enum type with incorrectly named values
|
* @see it('rejects an Enum type with incorrectly named values')
|
||||||
* @dataProvider invalidEnumValueName
|
* @dataProvider invalidEnumValueName
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEnumTypeWithIncorrectlyNamedValues($name, $expectedMessage)
|
public function testRejectsAnEnumTypeWithIncorrectlyNamedValues($name, $expectedMessage)
|
||||||
@ -907,7 +907,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Object fields must have output types
|
// DESCRIBE: Type System: Object fields must have output types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an output type as an Object field type
|
* @see it('accepts an output type as an Object field type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnOutputTypeAsNnObjectFieldType()
|
public function testAcceptsAnOutputTypeAsNnObjectFieldType()
|
||||||
{
|
{
|
||||||
@ -918,7 +918,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an empty Object field type
|
* @see it('rejects an empty Object field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEmptyObjectFieldType()
|
public function testRejectsAnEmptyObjectFieldType()
|
||||||
{
|
{
|
||||||
@ -933,7 +933,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-output type as an Object field type
|
* @see it('rejects a non-output type as an Object field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsANonOutputTypeAsAnObjectFieldType()
|
public function testRejectsANonOutputTypeAsAnObjectFieldType()
|
||||||
{
|
{
|
||||||
@ -950,7 +950,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects with relevant locations for a non-output type as an Object field type
|
* @see it('rejects with relevant locations for a non-output type as an Object field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsWithReleventLocationsForANonOutputTypeAsAnObjectFieldType()
|
public function testRejectsWithReleventLocationsForANonOutputTypeAsAnObjectFieldType()
|
||||||
{
|
{
|
||||||
@ -975,7 +975,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Objects can only implement unique interfaces
|
// DESCRIBE: Type System: Objects can only implement unique interfaces
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object implementing a non-type values
|
* @see it('rejects an Object implementing a non-type values')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectImplementingANonTypeValues()
|
public function testRejectsAnObjectImplementingANonTypeValues()
|
||||||
{
|
{
|
||||||
@ -997,7 +997,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object implementing a non-Interface type
|
* @see it('rejects an Object implementing a non-Interface type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectImplementingANonInterfaceType()
|
public function testRejectsAnObjectImplementingANonInterfaceType()
|
||||||
{
|
{
|
||||||
@ -1024,7 +1024,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object implementing the same interface twice
|
* @see it('rejects an Object implementing the same interface twice')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectImplementingTheSameInterfaceTwice()
|
public function testRejectsAnObjectImplementingTheSameInterfaceTwice()
|
||||||
{
|
{
|
||||||
@ -1051,7 +1051,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object implementing the same interface twice due to extension
|
* @see it('rejects an Object implementing the same interface twice due to extension')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectImplementingTheSameInterfaceTwiceDueToExtension()
|
public function testRejectsAnObjectImplementingTheSameInterfaceTwiceDueToExtension()
|
||||||
{
|
{
|
||||||
@ -1084,7 +1084,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Interface fields must have output types
|
// DESCRIBE: Type System: Interface fields must have output types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an output type as an Interface field type
|
* @see it('accepts an output type as an Interface field type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnOutputTypeAsAnInterfaceFieldType()
|
public function testAcceptsAnOutputTypeAsAnInterfaceFieldType()
|
||||||
{
|
{
|
||||||
@ -1095,7 +1095,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an empty Interface field type
|
* @see it('rejects an empty Interface field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEmptyInterfaceFieldType()
|
public function testRejectsAnEmptyInterfaceFieldType()
|
||||||
{
|
{
|
||||||
@ -1109,7 +1109,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-output type as an Interface field type
|
* @see it('rejects a non-output type as an Interface field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsANonOutputTypeAsAnInterfaceFieldType()
|
public function testRejectsANonOutputTypeAsAnInterfaceFieldType()
|
||||||
{
|
{
|
||||||
@ -1126,7 +1126,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-output type as an Interface field type with locations
|
* @see it('rejects a non-output type as an Interface field type with locations')
|
||||||
*/
|
*/
|
||||||
public function testRejectsANonOutputTypeAsAnInterfaceFieldTypeWithLocations()
|
public function testRejectsANonOutputTypeAsAnInterfaceFieldTypeWithLocations()
|
||||||
{
|
{
|
||||||
@ -1155,7 +1155,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Field arguments must have input types
|
// DESCRIBE: Type System: Field arguments must have input types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an input type as a field arg type
|
* @see it('accepts an input type as a field arg type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInputTypeAsAFieldArgType()
|
public function testAcceptsAnInputTypeAsAFieldArgType()
|
||||||
{
|
{
|
||||||
@ -1166,7 +1166,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an empty field arg type
|
* @see it('rejects an empty field arg type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEmptyFieldArgType()
|
public function testRejectsAnEmptyFieldArgType()
|
||||||
{
|
{
|
||||||
@ -1180,7 +1180,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-input type as a field arg type
|
* @see it('rejects a non-input type as a field arg type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsANonInputTypeAsAFieldArgType()
|
public function testRejectsANonInputTypeAsAFieldArgType()
|
||||||
{
|
{
|
||||||
@ -1196,7 +1196,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-input type as a field arg with locations
|
* @see it('rejects a non-input type as a field arg with locations')
|
||||||
*/
|
*/
|
||||||
public function testANonInputTypeAsAFieldArgWithLocations()
|
public function testANonInputTypeAsAFieldArgWithLocations()
|
||||||
{
|
{
|
||||||
@ -1221,7 +1221,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Type System: Input Object fields must have input types
|
// DESCRIBE: Type System: Input Object fields must have input types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an input type as an input field type
|
* @see it('accepts an input type as an input field type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnInputTypeAsAnInputFieldType()
|
public function testAcceptsAnInputTypeAsAnInputFieldType()
|
||||||
{
|
{
|
||||||
@ -1232,7 +1232,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an empty input field type
|
* @see it('rejects an empty input field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnEmptyInputFieldType()
|
public function testRejectsAnEmptyInputFieldType()
|
||||||
{
|
{
|
||||||
@ -1246,7 +1246,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-input type as an input field type
|
* @see it('rejects a non-input type as an input field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsANonInputTypeAsAnInputFieldType()
|
public function testRejectsANonInputTypeAsAnInputFieldType()
|
||||||
{
|
{
|
||||||
@ -1262,7 +1262,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects a non-input type as an input object field with locations
|
* @see it('rejects a non-input type as an input object field with locations')
|
||||||
*/
|
*/
|
||||||
public function testRejectsANonInputTypeAsAnInputObjectFieldWithLocations()
|
public function testRejectsANonInputTypeAsAnInputObjectFieldWithLocations()
|
||||||
{
|
{
|
||||||
@ -1291,7 +1291,7 @@ class ValidationTest extends TestCase
|
|||||||
// DESCRIBE: Objects must adhere to Interface they implement
|
// DESCRIBE: Objects must adhere to Interface they implement
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object which implements an Interface
|
* @see it('accepts an Object which implements an Interface')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWhichImplementsAnInterface()
|
public function testAcceptsAnObjectWhichImplementsAnInterface()
|
||||||
{
|
{
|
||||||
@ -1316,7 +1316,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object which implements an Interface along with more fields
|
* @see it('accepts an Object which implements an Interface along with more fields')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWhichImplementsAnInterfaceAlongWithMoreFields()
|
public function testAcceptsAnObjectWhichImplementsAnInterfaceAlongWithMoreFields()
|
||||||
{
|
{
|
||||||
@ -1342,7 +1342,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object which implements an Interface field along with additional optional arguments
|
* @see it('accepts an Object which implements an Interface field along with additional optional arguments')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWhichImplementsAnInterfaceFieldAlongWithAdditionalOptionalArguments()
|
public function testAcceptsAnObjectWhichImplementsAnInterfaceFieldAlongWithAdditionalOptionalArguments()
|
||||||
{
|
{
|
||||||
@ -1367,7 +1367,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object missing an Interface field
|
* @see it('rejects an Object missing an Interface field')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectMissingAnInterfaceField()
|
public function testRejectsAnObjectMissingAnInterfaceField()
|
||||||
{
|
{
|
||||||
@ -1396,7 +1396,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with an incorrectly typed Interface field
|
* @see it('rejects an Object with an incorrectly typed Interface field')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithAnIncorrectlyTypedInterfaceField()
|
public function testRejectsAnObjectWithAnIncorrectlyTypedInterfaceField()
|
||||||
{
|
{
|
||||||
@ -1425,7 +1425,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with a differently typed Interface field
|
* @see it('rejects an Object with a differently typed Interface field')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithADifferentlyTypedInterfaceField()
|
public function testRejectsAnObjectWithADifferentlyTypedInterfaceField()
|
||||||
{
|
{
|
||||||
@ -1457,7 +1457,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object with a subtyped Interface field (interface)
|
* @see it('accepts an Object with a subtyped Interface field (interface)')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWithASubtypedInterfaceFieldForInterface()
|
public function testAcceptsAnObjectWithASubtypedInterfaceFieldForInterface()
|
||||||
{
|
{
|
||||||
@ -1479,7 +1479,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object with a subtyped Interface field (union)
|
* @see it('accepts an Object with a subtyped Interface field (union)')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWithASubtypedInterfaceFieldForUnion()
|
public function testAcceptsAnObjectWithASubtypedInterfaceFieldForUnion()
|
||||||
{
|
{
|
||||||
@ -1507,7 +1507,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object missing an Interface argument
|
* @see it('rejects an Object missing an Interface argument')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectMissingAnInterfaceArgument()
|
public function testRejectsAnObjectMissingAnInterfaceArgument()
|
||||||
{
|
{
|
||||||
@ -1536,7 +1536,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with an incorrectly typed Interface argument
|
* @see it('rejects an Object with an incorrectly typed Interface argument')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithAnIncorrectlyTypedInterfaceArgument()
|
public function testRejectsAnObjectWithAnIncorrectlyTypedInterfaceArgument()
|
||||||
{
|
{
|
||||||
@ -1565,7 +1565,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with both an incorrectly typed field and argument
|
* @see it('rejects an Object with both an incorrectly typed field and argument')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithBothAnIncorrectlyTypedFieldAndArgument()
|
public function testRejectsAnObjectWithBothAnIncorrectlyTypedFieldAndArgument()
|
||||||
{
|
{
|
||||||
@ -1598,7 +1598,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object which implements an Interface field along with additional required arguments
|
* @see it('rejects an Object which implements an Interface field along with additional required arguments')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWhichImplementsAnInterfaceFieldAlongWithAdditionalRequiredArguments()
|
public function testRejectsAnObjectWhichImplementsAnInterfaceFieldAlongWithAdditionalRequiredArguments()
|
||||||
{
|
{
|
||||||
@ -1628,7 +1628,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object with an equivalently wrapped Interface field type
|
* @see it('accepts an Object with an equivalently wrapped Interface field type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWithAnEquivalentlyWrappedInterfaceFieldType()
|
public function testAcceptsAnObjectWithAnEquivalentlyWrappedInterfaceFieldType()
|
||||||
{
|
{
|
||||||
@ -1650,7 +1650,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with a non-list Interface field list type
|
* @see it('rejects an Object with a non-list Interface field list type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithANonListInterfaceFieldListType()
|
public function testRejectsAnObjectWithANonListInterfaceFieldListType()
|
||||||
{
|
{
|
||||||
@ -1679,7 +1679,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with a list Interface field non-list type
|
* @see it('rejects an Object with a list Interface field non-list type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithAListInterfaceFieldNonListType()
|
public function testRejectsAnObjectWithAListInterfaceFieldNonListType()
|
||||||
{
|
{
|
||||||
@ -1708,7 +1708,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts an Object with a subset non-null Interface field type
|
* @see it('accepts an Object with a subset non-null Interface field type')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsAnObjectWithASubsetNonNullInterfaceFieldType()
|
public function testAcceptsAnObjectWithASubsetNonNullInterfaceFieldType()
|
||||||
{
|
{
|
||||||
@ -1730,7 +1730,7 @@ class ValidationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects an Object with a superset nullable Interface field type
|
* @see it('rejects an Object with a superset nullable Interface field type')
|
||||||
*/
|
*/
|
||||||
public function testRejectsAnObjectWithASupersetNullableInterfaceFieldType()
|
public function testRejectsAnObjectWithASupersetNullableInterfaceFieldType()
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ class AssertValidNameTest extends TestCase
|
|||||||
// Describe: assertValidName()
|
// Describe: assertValidName()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it throws for use of leading double underscores
|
* @see it('throws for use of leading double underscores')
|
||||||
*/
|
*/
|
||||||
public function testThrowsForUseOfLeadingDoubleUnderscores()
|
public function testThrowsForUseOfLeadingDoubleUnderscores()
|
||||||
{
|
{
|
||||||
@ -21,7 +21,7 @@ class AssertValidNameTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it throws for non-strings
|
* @see it('throws for non-strings')
|
||||||
*/
|
*/
|
||||||
public function testThrowsForNonStrings()
|
public function testThrowsForNonStrings()
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ class AssertValidNameTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it throws for names with invalid characters
|
* @see it('throws for names with invalid characters')
|
||||||
*/
|
*/
|
||||||
public function testThrowsForNamesWithInvalidCharacters()
|
public function testThrowsForNamesWithInvalidCharacters()
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@ class AstFromValueTest extends TestCase
|
|||||||
// Describe: astFromValue
|
// Describe: astFromValue
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts boolean values to ASTs
|
* @see it('converts boolean values to ASTs')
|
||||||
*/
|
*/
|
||||||
public function testConvertsBooleanValueToASTs()
|
public function testConvertsBooleanValueToASTs()
|
||||||
{
|
{
|
||||||
@ -36,7 +36,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts Int values to Int ASTs
|
* @see it('converts Int values to Int ASTs')
|
||||||
*/
|
*/
|
||||||
public function testConvertsIntValuesToASTs()
|
public function testConvertsIntValuesToASTs()
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts Float values to Int/Float ASTs
|
* @see it('converts Float values to Int/Float ASTs')
|
||||||
*/
|
*/
|
||||||
public function testConvertsFloatValuesToIntOrFloatASTs()
|
public function testConvertsFloatValuesToIntOrFloatASTs()
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts String values to String ASTs
|
* @see it('converts String values to String ASTs')
|
||||||
*/
|
*/
|
||||||
public function testConvertsStringValuesToASTs()
|
public function testConvertsStringValuesToASTs()
|
||||||
{
|
{
|
||||||
@ -91,7 +91,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts ID values to Int/String ASTs
|
* @see it('converts ID values to Int/String ASTs')
|
||||||
*/
|
*/
|
||||||
public function testConvertIdValuesToIntOrStringASTs()
|
public function testConvertIdValuesToIntOrStringASTs()
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not converts NonNull values to NullValue
|
* @see it('does not converts NonNull values to NullValue')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotConvertsNonNullValuestoNullValue()
|
public function testDoesNotConvertsNonNullValuestoNullValue()
|
||||||
{
|
{
|
||||||
@ -116,7 +116,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts string values to Enum ASTs if possible
|
* @see it('converts string values to Enum ASTs if possible')
|
||||||
*/
|
*/
|
||||||
public function testConvertsStringValuesToEnumASTsIfPossible()
|
public function testConvertsStringValuesToEnumASTsIfPossible()
|
||||||
{
|
{
|
||||||
@ -131,7 +131,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts array values to List ASTs
|
* @see it('converts array values to List ASTs')
|
||||||
*/
|
*/
|
||||||
public function testConvertsArrayValuesToListASTs()
|
public function testConvertsArrayValuesToListASTs()
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts list singletons
|
* @see it('converts list singletons')
|
||||||
*/
|
*/
|
||||||
public function testConvertsListSingletons()
|
public function testConvertsListSingletons()
|
||||||
{
|
{
|
||||||
@ -161,7 +161,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts input objects
|
* @see it('converts input objects')
|
||||||
*/
|
*/
|
||||||
public function testConvertsInputObjects()
|
public function testConvertsInputObjects()
|
||||||
{
|
{
|
||||||
@ -186,7 +186,7 @@ class AstFromValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts input objects with explicit nulls
|
* @see it('converts input objects with explicit nulls')
|
||||||
*/
|
*/
|
||||||
public function testConvertsInputObjectsWithExplicitNulls()
|
public function testConvertsInputObjectsWithExplicitNulls()
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ class AstFromValueUntypedTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses simple values
|
* @see it('parses simple values')
|
||||||
*/
|
*/
|
||||||
public function testParsesSimpleValues()
|
public function testParsesSimpleValues()
|
||||||
{
|
{
|
||||||
@ -30,7 +30,7 @@ class AstFromValueUntypedTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses lists of values
|
* @see it('parses lists of values')
|
||||||
*/
|
*/
|
||||||
public function testParsesListsOfValues()
|
public function testParsesListsOfValues()
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ class AstFromValueUntypedTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses input objects
|
* @see it('parses input objects')
|
||||||
*/
|
*/
|
||||||
public function testParsesInputObjects()
|
public function testParsesInputObjects()
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ class AstFromValueUntypedTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses enum values as plain strings
|
* @see it('parses enum values as plain strings')
|
||||||
*/
|
*/
|
||||||
public function testParsesEnumValuesAsPlainStrings()
|
public function testParsesEnumValuesAsPlainStrings()
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ class AstFromValueUntypedTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it parses enum values as plain strings
|
* @see it('parses enum values as plain strings')
|
||||||
*/
|
*/
|
||||||
public function testParsesVariables()
|
public function testParsesVariables()
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
//DESCRIBE: findBreakingChanges
|
//DESCRIBE: findBreakingChanges
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a type was removed or not
|
* @see it('should detect if a type was removed or not')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfTypeWasRemovedOrNot()
|
public function testShouldDetectIfTypeWasRemovedOrNot()
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a type changed its type
|
* @see it('should detect if a type changed its type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfATypeChangedItsType()
|
public function testShouldDetectIfATypeChangedItsType()
|
||||||
{
|
{
|
||||||
@ -122,7 +122,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a field on a type was deleted or changed type
|
* @see it('should detect if a field on a type was deleted or changed type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfAFieldOnATypeWasDeletedOrChangedType()
|
public function testShouldDetectIfAFieldOnATypeWasDeletedOrChangedType()
|
||||||
{
|
{
|
||||||
@ -266,7 +266,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if fields on input types changed kind or were removed
|
* @see it('should detect if fields on input types changed kind or were removed')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfFieldsOnInputTypesChangedKindOrWereRemoved()
|
public function testShouldDetectIfFieldsOnInputTypesChangedKindOrWereRemoved()
|
||||||
{
|
{
|
||||||
@ -430,7 +430,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a non-null field is added to an input type
|
* @see it('should detect if a non-null field is added to an input type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfANonNullFieldIsAddedToAnInputType()
|
public function testShouldDetectIfANonNullFieldIsAddedToAnInputType()
|
||||||
{
|
{
|
||||||
@ -474,7 +474,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a type was removed from a union type
|
* @see it('should detect if a type was removed from a union type')
|
||||||
*/
|
*/
|
||||||
public function testShouldRetectIfATypeWasRemovedFromAUnionType()
|
public function testShouldRetectIfATypeWasRemovedFromAUnionType()
|
||||||
{
|
{
|
||||||
@ -537,7 +537,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a value was removed from an enum type
|
* @see it('should detect if a value was removed from an enum type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfAValueWasRemovedFromAnEnumType()
|
public function testShouldDetectIfAValueWasRemovedFromAnEnumType()
|
||||||
{
|
{
|
||||||
@ -582,7 +582,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a field argument was removed
|
* @see it('should detect if a field argument was removed')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfAFieldArgumentWasRemoved()
|
public function testShouldDetectIfAFieldArgumentWasRemoved()
|
||||||
{
|
{
|
||||||
@ -664,7 +664,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a field argument has changed type
|
* @see it('should detect if a field argument has changed type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfAFieldArgumentHasChangedType()
|
public function testShouldDetectIfAFieldArgumentHasChangedType()
|
||||||
{
|
{
|
||||||
@ -785,7 +785,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a non-null field argument was added
|
* @see it('should detect if a non-null field argument was added')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfANonNullFieldArgumentWasAdded()
|
public function testShouldDetectIfANonNullFieldArgumentWasAdded()
|
||||||
{
|
{
|
||||||
@ -834,7 +834,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should not flag args with the same type signature as breaking
|
* @see it('should not flag args with the same type signature as breaking')
|
||||||
*/
|
*/
|
||||||
public function testShouldNotFlagArgsWithTheSameTypeSignatureAsBreaking()
|
public function testShouldNotFlagArgsWithTheSameTypeSignatureAsBreaking()
|
||||||
{
|
{
|
||||||
@ -891,7 +891,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should consider args that move away from NonNull as non-breaking
|
* @see it('should consider args that move away from NonNull as non-breaking')
|
||||||
*/
|
*/
|
||||||
public function testShouldConsiderArgsThatMoveAwayFromNonNullAsNonBreaking()
|
public function testShouldConsiderArgsThatMoveAwayFromNonNullAsNonBreaking()
|
||||||
{
|
{
|
||||||
@ -931,7 +931,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect interfaces removed from types
|
* @see it('should detect interfaces removed from types')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectInterfacesRemovedFromTypes()
|
public function testShouldDetectInterfacesRemovedFromTypes()
|
||||||
{
|
{
|
||||||
@ -978,7 +978,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect all breaking changes
|
* @see it('should detect all breaking changes')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectAllBreakingChanges()
|
public function testShouldDetectAllBreakingChanges()
|
||||||
{
|
{
|
||||||
@ -1244,7 +1244,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a directive was explicitly removed
|
* @see it('should detect if a directive was explicitly removed')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfADirectiveWasExplicitlyRemoved()
|
public function testShouldDetectIfADirectiveWasExplicitlyRemoved()
|
||||||
{
|
{
|
||||||
@ -1269,7 +1269,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a directive was implicitly removed
|
* @see it('should detect if a directive was implicitly removed')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfADirectiveWasImplicitlyRemoved()
|
public function testShouldDetectIfADirectiveWasImplicitlyRemoved()
|
||||||
{
|
{
|
||||||
@ -1292,7 +1292,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a directive argument was removed
|
* @see it('should detect if a directive argument was removed')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfADirectiveArgumentWasRemoved()
|
public function testShouldDetectIfADirectiveArgumentWasRemoved()
|
||||||
{
|
{
|
||||||
@ -1330,7 +1330,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a non-nullable directive argument was added
|
* @see it('should detect if a non-nullable directive argument was added')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfANonNullableDirectiveArgumentWasAdded()
|
public function testShouldDetectIfANonNullableDirectiveArgumentWasAdded()
|
||||||
{
|
{
|
||||||
@ -1369,7 +1369,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect locations removed from a directive
|
* @see it('should detect locations removed from a directive')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectLocationsRemovedFromADirective()
|
public function testShouldDetectLocationsRemovedFromADirective()
|
||||||
{
|
{
|
||||||
@ -1387,7 +1387,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect locations removed directives within a schema
|
* @see it('should detect locations removed directives within a schema')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectLocationsRemovedDirectiveWithinASchema()
|
public function testShouldDetectLocationsRemovedDirectiveWithinASchema()
|
||||||
{
|
{
|
||||||
@ -1426,7 +1426,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
// DESCRIBE: findArgChanges
|
// DESCRIBE: findArgChanges
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if an argument's defaultValue has changed
|
* @see it('should detect if an argument's defaultValue has changed')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfAnArgumentsDefaultValueHasChanged()
|
public function testShouldDetectIfAnArgumentsDefaultValueHasChanged()
|
||||||
{
|
{
|
||||||
@ -1484,7 +1484,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a value was added to an enum type
|
* @see it('should detect if a value was added to an enum type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfAValueWasAddedToAnEnumType()
|
public function testShouldDetectIfAValueWasAddedToAnEnumType()
|
||||||
{
|
{
|
||||||
@ -1528,7 +1528,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect interfaces added to types
|
* @see it('should detect interfaces added to types')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectInterfacesAddedToTypes()
|
public function testShouldDetectInterfacesAddedToTypes()
|
||||||
{
|
{
|
||||||
@ -1577,7 +1577,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a type was added to a union type
|
* @see it('should detect if a type was added to a union type')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfATypeWasAddedToAUnionType()
|
public function testShouldDetectIfATypeWasAddedToAUnionType()
|
||||||
{
|
{
|
||||||
@ -1635,7 +1635,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a nullable field was added to an input
|
* @see it('should detect if a nullable field was added to an input')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfANullableFieldWasAddedToAnInput()
|
public function testShouldDetectIfANullableFieldWasAddedToAnInput()
|
||||||
{
|
{
|
||||||
@ -1684,7 +1684,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should find all dangerous changes
|
* @see it('should find all dangerous changes')
|
||||||
*/
|
*/
|
||||||
public function testShouldFindAllDangerousChanges()
|
public function testShouldFindAllDangerousChanges()
|
||||||
{
|
{
|
||||||
@ -1820,7 +1820,7 @@ class BreakingChangesFinderTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it should detect if a nullable field argument was added
|
* @see it('should detect if a nullable field argument was added')
|
||||||
*/
|
*/
|
||||||
public function testShouldDetectIfANullableFieldArgumentWasAdded()
|
public function testShouldDetectIfANullableFieldArgumentWasAdded()
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,7 @@ class BuildSchemaTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it can use built schema for limited execution
|
* @see it('can use built schema for limited execution')
|
||||||
*/
|
*/
|
||||||
public function testUseBuiltSchemaForLimitedExecution()
|
public function testUseBuiltSchemaForLimitedExecution()
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@ class BuildSchemaTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it can build a schema directly from the source
|
* @see it('can build a schema directly from the source')
|
||||||
*/
|
*/
|
||||||
public function testBuildSchemaDirectlyFromSource()
|
public function testBuildSchemaDirectlyFromSource()
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ class BuildSchemaTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple Type
|
* @see it('Simple Type')
|
||||||
*/
|
*/
|
||||||
public function testSimpleType()
|
public function testSimpleType()
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ type HelloScalars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it With directives
|
* @see it('With directives')
|
||||||
*/
|
*/
|
||||||
public function testWithDirectives()
|
public function testWithDirectives()
|
||||||
{
|
{
|
||||||
@ -101,7 +101,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Supports descriptions
|
* @see it('Supports descriptions')
|
||||||
*/
|
*/
|
||||||
public function testSupportsDescriptions()
|
public function testSupportsDescriptions()
|
||||||
{
|
{
|
||||||
@ -133,7 +133,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Supports option for comment descriptions
|
* @see it('Supports option for comment descriptions')
|
||||||
*/
|
*/
|
||||||
public function testSupportsOptionForCommentDescriptions()
|
public function testSupportsOptionForCommentDescriptions()
|
||||||
{
|
{
|
||||||
@ -164,7 +164,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Maintains @skip & @include
|
* @see it('Maintains @skip & @include')
|
||||||
*/
|
*/
|
||||||
public function testMaintainsSkipAndInclude()
|
public function testMaintainsSkipAndInclude()
|
||||||
{
|
{
|
||||||
@ -181,7 +181,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Overriding directives excludes specified
|
* @see it('Overriding directives excludes specified')
|
||||||
*/
|
*/
|
||||||
public function testOverridingDirectivesExcludesSpecified()
|
public function testOverridingDirectivesExcludesSpecified()
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Adding directives maintains @skip & @include
|
* @see it('Adding directives maintains @skip & @include')
|
||||||
*/
|
*/
|
||||||
public function testAddingDirectivesMaintainsSkipAndInclude()
|
public function testAddingDirectivesMaintainsSkipAndInclude()
|
||||||
{
|
{
|
||||||
@ -221,7 +221,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Type modifiers
|
* @see it('Type modifiers')
|
||||||
*/
|
*/
|
||||||
public function testTypeModifiers()
|
public function testTypeModifiers()
|
||||||
{
|
{
|
||||||
@ -239,7 +239,7 @@ type HelloScalars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Recursive type
|
* @see it('Recursive type')
|
||||||
*/
|
*/
|
||||||
public function testRecursiveType()
|
public function testRecursiveType()
|
||||||
{
|
{
|
||||||
@ -254,7 +254,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Two types circular
|
* @see it('Two types circular')
|
||||||
*/
|
*/
|
||||||
public function testTwoTypesCircular()
|
public function testTwoTypesCircular()
|
||||||
{
|
{
|
||||||
@ -278,7 +278,7 @@ type TypeTwo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Single argument field
|
* @see it('Single argument field')
|
||||||
*/
|
*/
|
||||||
public function testSingleArgumentField()
|
public function testSingleArgumentField()
|
||||||
{
|
{
|
||||||
@ -296,7 +296,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type with multiple arguments
|
* @see it('Simple type with multiple arguments')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeWithMultipleArguments()
|
public function testSimpleTypeWithMultipleArguments()
|
||||||
{
|
{
|
||||||
@ -310,7 +310,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type with interface
|
* @see it('Simple type with interface')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeWithInterface()
|
public function testSimpleTypeWithInterface()
|
||||||
{
|
{
|
||||||
@ -328,7 +328,7 @@ interface WorldInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple output enum
|
* @see it('Simple output enum')
|
||||||
*/
|
*/
|
||||||
public function testSimpleOutputEnum()
|
public function testSimpleOutputEnum()
|
||||||
{
|
{
|
||||||
@ -346,7 +346,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple input enum
|
* @see it('Simple input enum')
|
||||||
*/
|
*/
|
||||||
public function testSimpleInputEnum()
|
public function testSimpleInputEnum()
|
||||||
{
|
{
|
||||||
@ -364,7 +364,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple value enum
|
* @see it('Multiple value enum')
|
||||||
*/
|
*/
|
||||||
public function testMultipleValueEnum()
|
public function testMultipleValueEnum()
|
||||||
{
|
{
|
||||||
@ -383,7 +383,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple Union
|
* @see it('Simple Union')
|
||||||
*/
|
*/
|
||||||
public function testSimpleUnion()
|
public function testSimpleUnion()
|
||||||
{
|
{
|
||||||
@ -403,7 +403,7 @@ type World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple Union
|
* @see it('Multiple Union')
|
||||||
*/
|
*/
|
||||||
public function testMultipleUnion()
|
public function testMultipleUnion()
|
||||||
{
|
{
|
||||||
@ -427,7 +427,7 @@ type WorldTwo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Specifying Union type using __typename
|
* @see it('Specifying Union type using __typename')
|
||||||
*/
|
*/
|
||||||
public function testSpecifyingUnionTypeUsingTypename()
|
public function testSpecifyingUnionTypeUsingTypename()
|
||||||
{
|
{
|
||||||
@ -484,7 +484,7 @@ type WorldTwo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Specifying Interface type using __typename
|
* @see it('Specifying Interface type using __typename')
|
||||||
*/
|
*/
|
||||||
public function testSpecifyingInterfaceUsingTypename()
|
public function testSpecifyingInterfaceUsingTypename()
|
||||||
{
|
{
|
||||||
@ -548,7 +548,7 @@ type WorldTwo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Custom Scalar
|
* @see it('Custom Scalar')
|
||||||
*/
|
*/
|
||||||
public function testCustomScalar()
|
public function testCustomScalar()
|
||||||
{
|
{
|
||||||
@ -564,7 +564,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Input Object
|
* @see it('Input Object')
|
||||||
*/
|
*/
|
||||||
public function testInputObject()
|
public function testInputObject()
|
||||||
{
|
{
|
||||||
@ -582,7 +582,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple argument field with default
|
* @see it('Simple argument field with default')
|
||||||
*/
|
*/
|
||||||
public function testSimpleArgumentFieldWithDefault()
|
public function testSimpleArgumentFieldWithDefault()
|
||||||
{
|
{
|
||||||
@ -596,7 +596,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Custom scalar argument field with default
|
* @see it('Custom scalar argument field with default')
|
||||||
*/
|
*/
|
||||||
public function testCustomScalarArgumentFieldWithDefault()
|
public function testCustomScalarArgumentFieldWithDefault()
|
||||||
{
|
{
|
||||||
@ -612,7 +612,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type with mutation
|
* @see it('Simple type with mutation')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeWithMutation()
|
public function testSimpleTypeWithMutation()
|
||||||
{
|
{
|
||||||
@ -637,7 +637,7 @@ type Mutation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple type with subscription
|
* @see it('Simple type with subscription')
|
||||||
*/
|
*/
|
||||||
public function testSimpleTypeWithSubscription()
|
public function testSimpleTypeWithSubscription()
|
||||||
{
|
{
|
||||||
@ -662,7 +662,7 @@ type Subscription {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unreferenced type implementing referenced interface
|
* @see it('Unreferenced type implementing referenced interface')
|
||||||
*/
|
*/
|
||||||
public function testUnreferencedTypeImplementingReferencedInterface()
|
public function testUnreferencedTypeImplementingReferencedInterface()
|
||||||
{
|
{
|
||||||
@ -684,7 +684,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unreferenced type implementing referenced union
|
* @see it('Unreferenced type implementing referenced union')
|
||||||
*/
|
*/
|
||||||
public function testUnreferencedTypeImplementingReferencedUnion()
|
public function testUnreferencedTypeImplementingReferencedUnion()
|
||||||
{
|
{
|
||||||
@ -704,7 +704,7 @@ union Union = Concrete
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Supports @deprecated
|
* @see it('Supports @deprecated')
|
||||||
*/
|
*/
|
||||||
public function testSupportsDeprecated()
|
public function testSupportsDeprecated()
|
||||||
{
|
{
|
||||||
@ -750,7 +750,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Correctly assign AST nodes
|
* @see it('Correctly assign AST nodes')
|
||||||
*/
|
*/
|
||||||
public function testCorrectlyAssignASTNodes()
|
public function testCorrectlyAssignASTNodes()
|
||||||
{
|
{
|
||||||
@ -821,7 +821,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Root operation types with custom names
|
* @see it('Root operation types with custom names')
|
||||||
*/
|
*/
|
||||||
public function testRootOperationTypesWithCustomNames()
|
public function testRootOperationTypesWithCustomNames()
|
||||||
{
|
{
|
||||||
@ -842,7 +842,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Default root operation type names
|
* @see it('Default root operation type names')
|
||||||
*/
|
*/
|
||||||
public function testDefaultRootOperationTypeNames()
|
public function testDefaultRootOperationTypeNames()
|
||||||
{
|
{
|
||||||
@ -857,7 +857,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it can build invalid schema
|
* @see it('can build invalid schema')
|
||||||
*/
|
*/
|
||||||
public function testCanBuildInvalidSchema()
|
public function testCanBuildInvalidSchema()
|
||||||
{
|
{
|
||||||
@ -874,7 +874,7 @@ type Query {
|
|||||||
// Describe: Failures
|
// Describe: Failures
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows only a single schema definition
|
* @see it('Allows only a single schema definition')
|
||||||
*/
|
*/
|
||||||
public function testAllowsOnlySingleSchemaDefinition()
|
public function testAllowsOnlySingleSchemaDefinition()
|
||||||
{
|
{
|
||||||
@ -898,7 +898,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows only a single query type
|
* @see it('Allows only a single query type')
|
||||||
*/
|
*/
|
||||||
public function testAllowsOnlySingleQueryType()
|
public function testAllowsOnlySingleQueryType()
|
||||||
{
|
{
|
||||||
@ -923,7 +923,7 @@ type Yellow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows only a single mutation type
|
* @see it('Allows only a single mutation type')
|
||||||
*/
|
*/
|
||||||
public function testAllowsOnlySingleMutationType()
|
public function testAllowsOnlySingleMutationType()
|
||||||
{
|
{
|
||||||
@ -949,7 +949,7 @@ type Yellow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Allows only a single subscription type
|
* @see it('Allows only a single subscription type')
|
||||||
*/
|
*/
|
||||||
public function testAllowsOnlySingleSubscriptionType()
|
public function testAllowsOnlySingleSubscriptionType()
|
||||||
{
|
{
|
||||||
@ -975,7 +975,7 @@ type Yellow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown type referenced
|
* @see it('Unknown type referenced')
|
||||||
*/
|
*/
|
||||||
public function testUnknownTypeReferenced()
|
public function testUnknownTypeReferenced()
|
||||||
{
|
{
|
||||||
@ -996,7 +996,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown type in interface list
|
* @see it('Unknown type in interface list')
|
||||||
*/
|
*/
|
||||||
public function testUnknownTypeInInterfaceList()
|
public function testUnknownTypeInInterfaceList()
|
||||||
{
|
{
|
||||||
@ -1013,7 +1013,7 @@ type Query implements Bar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown type in union list
|
* @see it('Unknown type in union list')
|
||||||
*/
|
*/
|
||||||
public function testUnknownTypeInUnionList()
|
public function testUnknownTypeInUnionList()
|
||||||
{
|
{
|
||||||
@ -1029,7 +1029,7 @@ type Query { testUnion: TestUnion }
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown query type
|
* @see it('Unknown query type')
|
||||||
*/
|
*/
|
||||||
public function testUnknownQueryType()
|
public function testUnknownQueryType()
|
||||||
{
|
{
|
||||||
@ -1049,7 +1049,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown mutation type
|
* @see it('Unknown mutation type')
|
||||||
*/
|
*/
|
||||||
public function testUnknownMutationType()
|
public function testUnknownMutationType()
|
||||||
{
|
{
|
||||||
@ -1070,7 +1070,7 @@ type Hello {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown subscription type
|
* @see it('Unknown subscription type')
|
||||||
*/
|
*/
|
||||||
public function testUnknownSubscriptionType()
|
public function testUnknownSubscriptionType()
|
||||||
{
|
{
|
||||||
@ -1096,7 +1096,7 @@ type Wat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Does not consider operation names
|
* @see it('Does not consider operation names')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotConsiderOperationNames()
|
public function testDoesNotConsiderOperationNames()
|
||||||
{
|
{
|
||||||
@ -1114,7 +1114,7 @@ query Foo { field }
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Does not consider fragment names
|
* @see it('Does not consider fragment names')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotConsiderFragmentNames()
|
public function testDoesNotConsiderFragmentNames()
|
||||||
{
|
{
|
||||||
@ -1132,7 +1132,7 @@ fragment Foo on Type { field }
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Forbids duplicate type definitions
|
* @see it('Forbids duplicate type definitions')
|
||||||
*/
|
*/
|
||||||
public function testForbidsDuplicateTypeDefinitions()
|
public function testForbidsDuplicateTypeDefinitions()
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ class CoerceValueTest extends TestCase
|
|||||||
// Describe: coerceValue
|
// Describe: coerceValue
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coercing an array to GraphQLString produces an error
|
* @see it('coercing an array to GraphQLString produces an error')
|
||||||
*/
|
*/
|
||||||
public function testCoercingAnArrayToGraphQLStringProducesAnError()
|
public function testCoercingAnArrayToGraphQLStringProducesAnError()
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ class CoerceValueTest extends TestCase
|
|||||||
// Describe: for GraphQLInt
|
// Describe: for GraphQLInt
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for int input
|
* @see it('returns no error for int input')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsNoErrorForIntInput()
|
public function testIntReturnsNoErrorForIntInput()
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for negative int input
|
* @see it('returns no error for negative int input')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsNoErrorForNegativeIntInput()
|
public function testIntReturnsNoErrorForNegativeIntInput()
|
||||||
{
|
{
|
||||||
@ -74,7 +74,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for exponent input
|
* @see it('returns no error for exponent input')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsNoErrorForExponentInput()
|
public function testIntReturnsNoErrorForExponentInput()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for null
|
* @see it('returns no error for null')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsASingleErrorNull()
|
public function testIntReturnsASingleErrorNull()
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a single error for empty value
|
* @see it('returns a single error for empty value')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsASingleErrorForEmptyValue()
|
public function testIntReturnsASingleErrorForEmptyValue()
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns error for float input as int
|
* @see it('returns error for float input as int')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsErrorForFloatInputAsInt()
|
public function testIntReturnsErrorForFloatInputAsInt()
|
||||||
{
|
{
|
||||||
@ -116,7 +116,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a single error for char input
|
* @see it('returns a single error for char input')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsASingleErrorForCharInput()
|
public function testIntReturnsASingleErrorForCharInput()
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a single error for multi char input
|
* @see it('returns a single error for multi char input')
|
||||||
*/
|
*/
|
||||||
public function testIntReturnsASingleErrorForMultiCharInput()
|
public function testIntReturnsASingleErrorForMultiCharInput()
|
||||||
{
|
{
|
||||||
@ -142,7 +142,7 @@ class CoerceValueTest extends TestCase
|
|||||||
// Describe: for GraphQLFloat
|
// Describe: for GraphQLFloat
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for int input
|
* @see it('returns no error for int input')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsNoErrorForIntInput()
|
public function testFloatReturnsNoErrorForIntInput()
|
||||||
{
|
{
|
||||||
@ -151,7 +151,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for exponent input
|
* @see it('returns no error for exponent input')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsNoErrorForExponentInput()
|
public function testFloatReturnsNoErrorForExponentInput()
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for float input
|
* @see it('returns no error for float input')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsNoErrorForFloatInput()
|
public function testFloatReturnsNoErrorForFloatInput()
|
||||||
{
|
{
|
||||||
@ -169,7 +169,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for null
|
* @see it('returns no error for null')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsASingleErrorNull()
|
public function testFloatReturnsASingleErrorNull()
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a single error for empty value
|
* @see it('returns a single error for empty value')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsASingleErrorForEmptyValue()
|
public function testFloatReturnsASingleErrorForEmptyValue()
|
||||||
{
|
{
|
||||||
@ -190,7 +190,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a single error for char input
|
* @see it('returns a single error for char input')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsASingleErrorForCharInput()
|
public function testFloatReturnsASingleErrorForCharInput()
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns a single error for multi char input
|
* @see it('returns a single error for multi char input')
|
||||||
*/
|
*/
|
||||||
public function testFloatReturnsASingleErrorForMultiCharInput()
|
public function testFloatReturnsASingleErrorForMultiCharInput()
|
||||||
{
|
{
|
||||||
@ -216,7 +216,7 @@ class CoerceValueTest extends TestCase
|
|||||||
// DESCRIBE: for GraphQLEnum
|
// DESCRIBE: for GraphQLEnum
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for a known enum name
|
* @see it('returns no error for a known enum name')
|
||||||
*/
|
*/
|
||||||
public function testReturnsNoErrorForAKnownEnumName()
|
public function testReturnsNoErrorForAKnownEnumName()
|
||||||
{
|
{
|
||||||
@ -230,7 +230,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it results error for misspelled enum value
|
* @see it('results error for misspelled enum value')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorForMisspelledEnumValue()
|
public function testReturnsErrorForMisspelledEnumValue()
|
||||||
{
|
{
|
||||||
@ -239,7 +239,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it results error for incorrect value type
|
* @see it('results error for incorrect value type')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorForIncorrectValueType()
|
public function testReturnsErrorForIncorrectValueType()
|
||||||
{
|
{
|
||||||
@ -253,7 +253,7 @@ class CoerceValueTest extends TestCase
|
|||||||
// DESCRIBE: for GraphQLInputObject
|
// DESCRIBE: for GraphQLInputObject
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for a valid input
|
* @see it('returns no error for a valid input')
|
||||||
*/
|
*/
|
||||||
public function testReturnsNoErrorForValidInput()
|
public function testReturnsNoErrorForValidInput()
|
||||||
{
|
{
|
||||||
@ -263,7 +263,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for a non-object type
|
* @see it('returns no error for a non-object type')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorForNonObjectType()
|
public function testReturnsErrorForNonObjectType()
|
||||||
{
|
{
|
||||||
@ -272,7 +272,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns no error for an invalid field
|
* @see it('returns no error for an invalid field')
|
||||||
*/
|
*/
|
||||||
public function testReturnErrorForAnInvalidField()
|
public function testReturnErrorForAnInvalidField()
|
||||||
{
|
{
|
||||||
@ -281,7 +281,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns multiple errors for multiple invalid fields
|
* @see it('returns multiple errors for multiple invalid fields')
|
||||||
*/
|
*/
|
||||||
public function testReturnsMultipleErrorsForMultipleInvalidFields()
|
public function testReturnsMultipleErrorsForMultipleInvalidFields()
|
||||||
{
|
{
|
||||||
@ -293,7 +293,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns error for a missing required field
|
* @see it('returns error for a missing required field')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorForAMissingRequiredField()
|
public function testReturnsErrorForAMissingRequiredField()
|
||||||
{
|
{
|
||||||
@ -302,7 +302,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns error for an unknown field
|
* @see it('returns error for an unknown field')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorForAnUnknownField()
|
public function testReturnsErrorForAnUnknownField()
|
||||||
{
|
{
|
||||||
@ -311,7 +311,7 @@ class CoerceValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it returns error for a misspelled field
|
* @see it('returns error for a misspelled field')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorForAMisspelledField()
|
public function testReturnsErrorForAMisspelledField()
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ class IsValidLiteralValueTest extends TestCase
|
|||||||
// DESCRIBE: isValidLiteralValue
|
// DESCRIBE: isValidLiteralValue
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns no errors for a valid value
|
* @see it('Returns no errors for a valid value')
|
||||||
*/
|
*/
|
||||||
public function testReturnsNoErrorsForAValidValue()
|
public function testReturnsNoErrorsForAValidValue()
|
||||||
{
|
{
|
||||||
@ -24,7 +24,7 @@ class IsValidLiteralValueTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns errors for an invalid value
|
* @see it('Returns errors for an invalid value')
|
||||||
*/
|
*/
|
||||||
public function testReturnsErrorsForForInvalidValue()
|
public function testReturnsErrorsForForInvalidValue()
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ class QuotedOrListTest extends TestCase
|
|||||||
// DESCRIBE: quotedOrList
|
// DESCRIBE: quotedOrList
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Does not accept an empty list
|
* @see it('Does not accept an empty list')
|
||||||
*/
|
*/
|
||||||
public function testResturnsResultsWhenInputIsEmpty()
|
public function testResturnsResultsWhenInputIsEmpty()
|
||||||
{
|
{
|
||||||
@ -21,7 +21,7 @@ class QuotedOrListTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns single quoted item
|
* @see it('Returns single quoted item')
|
||||||
*/
|
*/
|
||||||
public function testReturnsSingleQuotedItem()
|
public function testReturnsSingleQuotedItem()
|
||||||
{
|
{
|
||||||
@ -32,7 +32,7 @@ class QuotedOrListTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns two item list
|
* @see it('Returns two item list')
|
||||||
*/
|
*/
|
||||||
public function testReturnsTwoItemList()
|
public function testReturnsTwoItemList()
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ class QuotedOrListTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns comma separated many item list
|
* @see it('Returns comma separated many item list')
|
||||||
*/
|
*/
|
||||||
public function testReturnsCommaSeparatedManyItemList()
|
public function testReturnsCommaSeparatedManyItemList()
|
||||||
{
|
{
|
||||||
@ -54,7 +54,7 @@ class QuotedOrListTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Limits to five items
|
* @see it('Limits to five items')
|
||||||
*/
|
*/
|
||||||
public function testLimitsToFiveItems()
|
public function testLimitsToFiveItems()
|
||||||
{
|
{
|
||||||
|
@ -38,7 +38,7 @@ class SchemaPrinterTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field
|
* @see it('Prints String Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringField()
|
public function testPrintsStringField()
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints [String] Field
|
* @see it('Prints [String] Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintArrayStringField()
|
public function testPrintArrayStringField()
|
||||||
{
|
{
|
||||||
@ -68,7 +68,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String! Field
|
* @see it('Prints String! Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintNonNullStringField()
|
public function testPrintNonNullStringField()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints [String]! Field
|
* @see it('Prints [String]! Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintNonNullArrayStringField()
|
public function testPrintNonNullArrayStringField()
|
||||||
{
|
{
|
||||||
@ -98,7 +98,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints [String!] Field
|
* @see it('Prints [String!] Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintArrayNonNullStringField()
|
public function testPrintArrayNonNullStringField()
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints [String!]! Field
|
* @see it('Prints [String!]! Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintNonNullArrayNonNullStringField()
|
public function testPrintNonNullArrayNonNullStringField()
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Object Field
|
* @see it('Print Object Field')
|
||||||
*/
|
*/
|
||||||
public function testPrintObjectField()
|
public function testPrintObjectField()
|
||||||
{
|
{
|
||||||
@ -156,7 +156,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Int Arg
|
* @see it('Prints String Field With Int Arg')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithIntArg()
|
public function testPrintsStringFieldWithIntArg()
|
||||||
{
|
{
|
||||||
@ -172,7 +172,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Int Arg With Default
|
* @see it('Prints String Field With Int Arg With Default')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithIntArgWithDefault()
|
public function testPrintsStringFieldWithIntArgWithDefault()
|
||||||
{
|
{
|
||||||
@ -188,7 +188,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With String Arg With Default
|
* @see it('Prints String Field With String Arg With Default')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithStringArgWithDefault()
|
public function testPrintsStringFieldWithStringArgWithDefault()
|
||||||
{
|
{
|
||||||
@ -204,7 +204,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Int Arg With Default Null
|
* @see it('Prints String Field With Int Arg With Default Null')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithIntArgWithDefaultNull()
|
public function testPrintsStringFieldWithIntArgWithDefaultNull()
|
||||||
{
|
{
|
||||||
@ -220,7 +220,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Int! Arg
|
* @see it('Prints String Field With Int! Arg')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithNonNullIntArg()
|
public function testPrintsStringFieldWithNonNullIntArg()
|
||||||
{
|
{
|
||||||
@ -236,7 +236,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Multiple Args
|
* @see it('Prints String Field With Multiple Args')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithMultipleArgs()
|
public function testPrintsStringFieldWithMultipleArgs()
|
||||||
{
|
{
|
||||||
@ -255,7 +255,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Multiple Args, First is Default
|
* @see it('Prints String Field With Multiple Args, First is Default')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithMultipleArgsFirstIsDefault()
|
public function testPrintsStringFieldWithMultipleArgsFirstIsDefault()
|
||||||
{
|
{
|
||||||
@ -275,7 +275,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Multiple Args, Second is Default
|
* @see it('Prints String Field With Multiple Args, Second is Default')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithMultipleArgsSecondIsDefault()
|
public function testPrintsStringFieldWithMultipleArgsSecondIsDefault()
|
||||||
{
|
{
|
||||||
@ -295,7 +295,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints String Field With Multiple Args, Last is Default
|
* @see it('Prints String Field With Multiple Args, Last is Default')
|
||||||
*/
|
*/
|
||||||
public function testPrintsStringFieldWithMultipleArgsLastIsDefault()
|
public function testPrintsStringFieldWithMultipleArgsLastIsDefault()
|
||||||
{
|
{
|
||||||
@ -315,7 +315,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints custom query root type
|
* @see it('Prints custom query root type')
|
||||||
*/
|
*/
|
||||||
public function testPrintsCustomQueryRootType()
|
public function testPrintsCustomQueryRootType()
|
||||||
{
|
{
|
||||||
@ -341,7 +341,7 @@ type CustomQueryType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Interface
|
* @see it('Print Interface')
|
||||||
*/
|
*/
|
||||||
public function testPrintInterface()
|
public function testPrintInterface()
|
||||||
{
|
{
|
||||||
@ -382,7 +382,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Multiple Interface
|
* @see it('Print Multiple Interface')
|
||||||
*/
|
*/
|
||||||
public function testPrintMultipleInterface()
|
public function testPrintMultipleInterface()
|
||||||
{
|
{
|
||||||
@ -436,7 +436,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Unions
|
* @see it('Print Unions')
|
||||||
*/
|
*/
|
||||||
public function testPrintUnions()
|
public function testPrintUnions()
|
||||||
{
|
{
|
||||||
@ -491,7 +491,7 @@ union SingleUnion = Foo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Input Type
|
* @see it('Print Input Type')
|
||||||
*/
|
*/
|
||||||
public function testInputType()
|
public function testInputType()
|
||||||
{
|
{
|
||||||
@ -524,7 +524,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Custom Scalar
|
* @see it('Custom Scalar')
|
||||||
*/
|
*/
|
||||||
public function testCustomScalar()
|
public function testCustomScalar()
|
||||||
{
|
{
|
||||||
@ -554,7 +554,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Enum
|
* @see it('Enum')
|
||||||
*/
|
*/
|
||||||
public function testEnum()
|
public function testEnum()
|
||||||
{
|
{
|
||||||
@ -590,7 +590,7 @@ enum RGB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Prints custom directives
|
* @see it('Prints custom directives')
|
||||||
*/
|
*/
|
||||||
public function testPrintsCustomDirectives()
|
public function testPrintsCustomDirectives()
|
||||||
{
|
{
|
||||||
@ -624,7 +624,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it One-line prints a short description
|
* @see it('One-line prints a short description')
|
||||||
*/
|
*/
|
||||||
public function testOneLinePrintsAShortDescription()
|
public function testOneLinePrintsAShortDescription()
|
||||||
{
|
{
|
||||||
@ -647,7 +647,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Does not one-line print a description that ends with a quote
|
* @see it('Does not one-line print a description that ends with a quote')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotOneLinePrintADescriptionThatEndsWithAQuote()
|
public function testDoesNotOneLinePrintADescriptionThatEndsWithAQuote()
|
||||||
{
|
{
|
||||||
@ -672,7 +672,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Preserves leading spaces when printing a description
|
* @see it('Preserves leading spaces when printing a description')
|
||||||
*/
|
*/
|
||||||
public function testPReservesLeadingSpacesWhenPrintingADescription()
|
public function testPReservesLeadingSpacesWhenPrintingADescription()
|
||||||
{
|
{
|
||||||
@ -696,7 +696,7 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Introspection Schema
|
* @see it('Print Introspection Schema')
|
||||||
*/
|
*/
|
||||||
public function testPrintIntrospectionSchema()
|
public function testPrintIntrospectionSchema()
|
||||||
{
|
{
|
||||||
@ -941,7 +941,7 @@ EOT;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Print Introspection Schema with comment descriptions
|
* @see it('Print Introspection Schema with comment descriptions')
|
||||||
*/
|
*/
|
||||||
public function testPrintIntrospectionSchemaWithCommentDescriptions()
|
public function testPrintIntrospectionSchemaWithCommentDescriptions()
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ class SuggestionListTest extends TestCase
|
|||||||
// DESCRIBE: suggestionList
|
// DESCRIBE: suggestionList
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns results when input is empty
|
* @see it('Returns results when input is empty')
|
||||||
*/
|
*/
|
||||||
public function testResturnsResultsWhenInputIsEmpty()
|
public function testResturnsResultsWhenInputIsEmpty()
|
||||||
{
|
{
|
||||||
@ -23,7 +23,7 @@ class SuggestionListTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns empty array when there are no options
|
* @see it('Returns empty array when there are no options')
|
||||||
*/
|
*/
|
||||||
public function testReturnsEmptyArrayWhenThereAreNoOptions()
|
public function testReturnsEmptyArrayWhenThereAreNoOptions()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class SuggestionListTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Returns options sorted based on similarity
|
* @see it('Returns options sorted based on similarity')
|
||||||
*/
|
*/
|
||||||
public function testReturnsOptionsSortedBasedOnSimilarity()
|
public function testReturnsOptionsSortedBasedOnSimilarity()
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it rejects empty input
|
* @see it('rejects empty input')
|
||||||
*/
|
*/
|
||||||
public function testRejectsEmptyInput()
|
public function testRejectsEmptyInput()
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts according to input coercion rules
|
* @see it('converts according to input coercion rules')
|
||||||
*/
|
*/
|
||||||
public function testConvertsAccordingToInputCoercionRules()
|
public function testConvertsAccordingToInputCoercionRules()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not convert when input coercion rules reject a value
|
* @see it('does not convert when input coercion rules reject a value')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotConvertWhenInputCoercionRulesRejectAValue()
|
public function testDoesNotConvertWhenInputCoercionRulesRejectAValue()
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it converts enum values according to input coercion rules
|
* @see it('converts enum values according to input coercion rules')
|
||||||
*/
|
*/
|
||||||
public function testConvertsEnumValuesAccordingToInputCoercionRules()
|
public function testConvertsEnumValuesAccordingToInputCoercionRules()
|
||||||
{
|
{
|
||||||
@ -86,7 +86,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coerces to null unless non-null
|
* @see it('coerces to null unless non-null')
|
||||||
*/
|
*/
|
||||||
public function testCoercesToNullUnlessNonNull()
|
public function testCoercesToNullUnlessNonNull()
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coerces lists of values
|
* @see it('coerces lists of values')
|
||||||
*/
|
*/
|
||||||
public function testCoercesListsOfValues()
|
public function testCoercesListsOfValues()
|
||||||
{
|
{
|
||||||
@ -112,7 +112,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coerces non-null lists of values
|
* @see it('coerces non-null lists of values')
|
||||||
*/
|
*/
|
||||||
public function testCoercesNonNullListsOfValues()
|
public function testCoercesNonNullListsOfValues()
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coerces lists of non-null values
|
* @see it('coerces lists of non-null values')
|
||||||
*/
|
*/
|
||||||
public function testCoercesListsOfNonNullValues()
|
public function testCoercesListsOfNonNullValues()
|
||||||
{
|
{
|
||||||
@ -144,7 +144,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coerces non-null lists of non-null values
|
* @see it('coerces non-null lists of non-null values')
|
||||||
*/
|
*/
|
||||||
public function testCoercesNonNullListsOfNonNullValues()
|
public function testCoercesNonNullListsOfNonNullValues()
|
||||||
{
|
{
|
||||||
@ -174,7 +174,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it coerces input objects according to input coercion rules
|
* @see it('coerces input objects according to input coercion rules')
|
||||||
*/
|
*/
|
||||||
public function testCoercesInputObjectsAccordingToInputCoercionRules()
|
public function testCoercesInputObjectsAccordingToInputCoercionRules()
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it accepts variable values assuming already coerced
|
* @see it('accepts variable values assuming already coerced')
|
||||||
*/
|
*/
|
||||||
public function testAcceptsVariableValuesAssumingAlreadyCoerced()
|
public function testAcceptsVariableValuesAssumingAlreadyCoerced()
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it asserts variables are provided as items in lists
|
* @see it('asserts variables are provided as items in lists')
|
||||||
*/
|
*/
|
||||||
public function testAssertsVariablesAreProvidedAsItemsInLists()
|
public function testAssertsVariablesAreProvidedAsItemsInLists()
|
||||||
{
|
{
|
||||||
@ -219,7 +219,7 @@ class ValueFromAstTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it omits input object fields for unprovided variables
|
* @see it('omits input object fields for unprovided variables')
|
||||||
*/
|
*/
|
||||||
public function testOmitsInputObjectFieldsForUnprovidedVariables()
|
public function testOmitsInputObjectFieldsForUnprovidedVariables()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
|||||||
// Validate: Disable Introspection
|
// Validate: Disable Introspection
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fails if the query contains __schema
|
* @see it('fails if the query contains __schema')
|
||||||
*/
|
*/
|
||||||
public function testQueryContainsSchema()
|
public function testQueryContainsSchema()
|
||||||
{
|
{
|
||||||
@ -28,7 +28,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fails if the query contains __type
|
* @see it('fails if the query contains __type')
|
||||||
*/
|
*/
|
||||||
public function testQueryContainsType()
|
public function testQueryContainsType()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not fail on a query that does not contain __type
|
* @see it('does not fail on a query that does not contain __type')
|
||||||
*/
|
*/
|
||||||
public function testValidQuery()
|
public function testValidQuery()
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not fail when not enabled
|
* @see it('does not fail when not enabled')
|
||||||
*/
|
*/
|
||||||
public function testQueryWhenDisabled()
|
public function testQueryWhenDisabled()
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it has a public interface for enabeling the rule
|
* @see it('has a public interface for enabeling the rule')
|
||||||
*/
|
*/
|
||||||
public function testPublicEnableInterface()
|
public function testPublicEnableInterface()
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it has a public interface for disableing the rule
|
* @see it('has a public interface for disableing the rule')
|
||||||
*/
|
*/
|
||||||
public function testPublicDisableInterface()
|
public function testPublicDisableInterface()
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ class ExecutableDefinitionsTest extends ValidatorTestCase
|
|||||||
// Validate: Executable definitions
|
// Validate: Executable definitions
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with only operation
|
* @see it('with only operation')
|
||||||
*/
|
*/
|
||||||
public function testWithOnlyOperation()
|
public function testWithOnlyOperation()
|
||||||
{
|
{
|
||||||
@ -25,7 +25,7 @@ class ExecutableDefinitionsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with operation and fragment
|
* @see it('with operation and fragment')
|
||||||
*/
|
*/
|
||||||
public function testWithOperationAndFragment()
|
public function testWithOperationAndFragment()
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@ class ExecutableDefinitionsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with typeDefinition
|
* @see it('with typeDefinition')
|
||||||
*/
|
*/
|
||||||
public function testWithTypeDefinition()
|
public function testWithTypeDefinition()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Validate: Fields on correct type
|
// Validate: Fields on correct type
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Object field selection
|
* @see it('Object field selection')
|
||||||
*/
|
*/
|
||||||
public function testObjectFieldSelection()
|
public function testObjectFieldSelection()
|
||||||
{
|
{
|
||||||
@ -23,7 +23,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Aliased object field selection
|
* @see it('Aliased object field selection')
|
||||||
*/
|
*/
|
||||||
public function testAliasedObjectFieldSelection()
|
public function testAliasedObjectFieldSelection()
|
||||||
{
|
{
|
||||||
@ -36,7 +36,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Interface field selection
|
* @see it('Interface field selection')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceFieldSelection()
|
public function testInterfaceFieldSelection()
|
||||||
{
|
{
|
||||||
@ -49,7 +49,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Aliased interface field selection
|
* @see it('Aliased interface field selection')
|
||||||
*/
|
*/
|
||||||
public function testAliasedInterfaceFieldSelection()
|
public function testAliasedInterfaceFieldSelection()
|
||||||
{
|
{
|
||||||
@ -61,7 +61,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Lying alias selection
|
* @see it('Lying alias selection')
|
||||||
*/
|
*/
|
||||||
public function testLyingAliasSelection()
|
public function testLyingAliasSelection()
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Ignores fields on unknown type
|
* @see it('Ignores fields on unknown type')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresFieldsOnUnknownType()
|
public function testIgnoresFieldsOnUnknownType()
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports errors when type is known again
|
* @see it('reports errors when type is known again')
|
||||||
*/
|
*/
|
||||||
public function testReportsErrorsWhenTypeIsKnownAgain()
|
public function testReportsErrorsWhenTypeIsKnownAgain()
|
||||||
{
|
{
|
||||||
@ -105,7 +105,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Field not defined on fragment
|
* @see it('Field not defined on fragment')
|
||||||
*/
|
*/
|
||||||
public function testFieldNotDefinedOnFragment()
|
public function testFieldNotDefinedOnFragment()
|
||||||
{
|
{
|
||||||
@ -118,7 +118,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Ignores deeply unknown field
|
* @see it('Ignores deeply unknown field')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresDeeplyUnknownField()
|
public function testIgnoresDeeplyUnknownField()
|
||||||
{
|
{
|
||||||
@ -133,7 +133,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Sub-field not defined
|
* @see it('Sub-field not defined')
|
||||||
*/
|
*/
|
||||||
public function testSubFieldNotDefined()
|
public function testSubFieldNotDefined()
|
||||||
{
|
{
|
||||||
@ -148,7 +148,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Field not defined on inline fragment
|
* @see it('Field not defined on inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testFieldNotDefinedOnInlineFragment()
|
public function testFieldNotDefinedOnInlineFragment()
|
||||||
{
|
{
|
||||||
@ -163,7 +163,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Aliased field target not defined
|
* @see it('Aliased field target not defined')
|
||||||
*/
|
*/
|
||||||
public function testAliasedFieldTargetNotDefined()
|
public function testAliasedFieldTargetNotDefined()
|
||||||
{
|
{
|
||||||
@ -176,7 +176,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Aliased lying field target not defined
|
* @see it('Aliased lying field target not defined')
|
||||||
*/
|
*/
|
||||||
public function testAliasedLyingFieldTargetNotDefined()
|
public function testAliasedLyingFieldTargetNotDefined()
|
||||||
{
|
{
|
||||||
@ -189,7 +189,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Not defined on interface
|
* @see it('Not defined on interface')
|
||||||
*/
|
*/
|
||||||
public function testNotDefinedOnInterface()
|
public function testNotDefinedOnInterface()
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Defined on implementors but not on interface
|
* @see it('Defined on implementors but not on interface')
|
||||||
*/
|
*/
|
||||||
public function testDefinedOnImplmentorsButNotOnInterface()
|
public function testDefinedOnImplmentorsButNotOnInterface()
|
||||||
{
|
{
|
||||||
@ -215,7 +215,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Meta field selection on union
|
* @see it('Meta field selection on union')
|
||||||
*/
|
*/
|
||||||
public function testMetaFieldSelectionOnUnion()
|
public function testMetaFieldSelectionOnUnion()
|
||||||
{
|
{
|
||||||
@ -227,7 +227,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Direct field selection on union
|
* @see it('Direct field selection on union')
|
||||||
*/
|
*/
|
||||||
public function testDirectFieldSelectionOnUnion()
|
public function testDirectFieldSelectionOnUnion()
|
||||||
{
|
{
|
||||||
@ -240,7 +240,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Defined on implementors queried on union
|
* @see it('Defined on implementors queried on union')
|
||||||
*/
|
*/
|
||||||
public function testDefinedOnImplementorsQueriedOnUnion()
|
public function testDefinedOnImplementorsQueriedOnUnion()
|
||||||
{
|
{
|
||||||
@ -260,7 +260,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it valid field in inline fragment
|
* @see it('valid field in inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testValidFieldInInlineFragment()
|
public function testValidFieldInInlineFragment()
|
||||||
{
|
{
|
||||||
@ -276,7 +276,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Describe: Fields on correct type error message
|
// Describe: Fields on correct type error message
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Works with no suggestions
|
* @see it('Works with no suggestions')
|
||||||
*/
|
*/
|
||||||
public function testWorksWithNoSuggestions()
|
public function testWorksWithNoSuggestions()
|
||||||
{
|
{
|
||||||
@ -284,7 +284,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Works with no small numbers of type suggestions
|
* @see it('Works with no small numbers of type suggestions')
|
||||||
*/
|
*/
|
||||||
public function testWorksWithNoSmallNumbersOfTypeSuggestions()
|
public function testWorksWithNoSmallNumbersOfTypeSuggestions()
|
||||||
{
|
{
|
||||||
@ -295,7 +295,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Works with no small numbers of field suggestions
|
* @see it('Works with no small numbers of field suggestions')
|
||||||
*/
|
*/
|
||||||
public function testWorksWithNoSmallNumbersOfFieldSuggestions()
|
public function testWorksWithNoSmallNumbersOfFieldSuggestions()
|
||||||
{
|
{
|
||||||
@ -306,7 +306,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Only shows one set of suggestions at a time, preferring types
|
* @see it('Only shows one set of suggestions at a time, preferring types')
|
||||||
*/
|
*/
|
||||||
public function testOnlyShowsOneSetOfSuggestionsAtATimePreferringTypes()
|
public function testOnlyShowsOneSetOfSuggestionsAtATimePreferringTypes()
|
||||||
{
|
{
|
||||||
@ -317,7 +317,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Limits lots of type suggestions
|
* @see it('Limits lots of type suggestions')
|
||||||
*/
|
*/
|
||||||
public function testLimitsLotsOfTypeSuggestions()
|
public function testLimitsLotsOfTypeSuggestions()
|
||||||
{
|
{
|
||||||
@ -333,7 +333,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Limits lots of field suggestions
|
* @see it('Limits lots of field suggestions')
|
||||||
*/
|
*/
|
||||||
public function testLimitsLotsOfFieldSuggestions()
|
public function testLimitsLotsOfFieldSuggestions()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
// Validate: Fragments on composite types
|
// Validate: Fragments on composite types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object is valid fragment type
|
* @see it('object is valid fragment type')
|
||||||
*/
|
*/
|
||||||
public function testObjectIsValidFragmentType()
|
public function testObjectIsValidFragmentType()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface is valid fragment type
|
* @see it('interface is valid fragment type')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIsValidFragmentType()
|
public function testInterfaceIsValidFragmentType()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object is valid inline fragment type
|
* @see it('object is valid inline fragment type')
|
||||||
*/
|
*/
|
||||||
public function testObjectIsValidInlineFragmentType()
|
public function testObjectIsValidInlineFragmentType()
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it inline fragment without type is valid
|
* @see it('inline fragment without type is valid')
|
||||||
*/
|
*/
|
||||||
public function testInlineFragmentWithoutTypeIsValid()
|
public function testInlineFragmentWithoutTypeIsValid()
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union is valid fragment type
|
* @see it('union is valid fragment type')
|
||||||
*/
|
*/
|
||||||
public function testUnionIsValidFragmentType()
|
public function testUnionIsValidFragmentType()
|
||||||
{
|
{
|
||||||
@ -74,7 +74,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it scalar is invalid fragment type
|
* @see it('scalar is invalid fragment type')
|
||||||
*/
|
*/
|
||||||
public function testScalarIsInvalidFragmentType()
|
public function testScalarIsInvalidFragmentType()
|
||||||
{
|
{
|
||||||
@ -87,7 +87,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it enum is invalid fragment type
|
* @see it('enum is invalid fragment type')
|
||||||
*/
|
*/
|
||||||
public function testEnumIsInvalidFragmentType()
|
public function testEnumIsInvalidFragmentType()
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it input object is invalid fragment type
|
* @see it('input object is invalid fragment type')
|
||||||
*/
|
*/
|
||||||
public function testInputObjectIsInvalidFragmentType()
|
public function testInputObjectIsInvalidFragmentType()
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it scalar is invalid inline fragment type
|
* @see it('scalar is invalid inline fragment type')
|
||||||
*/
|
*/
|
||||||
public function testScalarIsInvalidInlineFragmentType()
|
public function testScalarIsInvalidInlineFragmentType()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Known argument names:
|
// Validate: Known argument names:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it single arg is known
|
* @see it('single arg is known')
|
||||||
*/
|
*/
|
||||||
public function testSingleArgIsKnown()
|
public function testSingleArgIsKnown()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple args are known
|
* @see it('multiple args are known')
|
||||||
*/
|
*/
|
||||||
public function testMultipleArgsAreKnown()
|
public function testMultipleArgsAreKnown()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores args of unknown fields
|
* @see it('ignores args of unknown fields')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresArgsOfUnknownFields()
|
public function testIgnoresArgsOfUnknownFields()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple args in reverse order are known
|
* @see it('multiple args in reverse order are known')
|
||||||
*/
|
*/
|
||||||
public function testMultipleArgsInReverseOrderAreKnown()
|
public function testMultipleArgsInReverseOrderAreKnown()
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no args on optional arg
|
* @see it('no args on optional arg')
|
||||||
*/
|
*/
|
||||||
public function testNoArgsOnOptionalArg()
|
public function testNoArgsOnOptionalArg()
|
||||||
{
|
{
|
||||||
@ -70,7 +70,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it args are known deeply
|
* @see it('args are known deeply')
|
||||||
*/
|
*/
|
||||||
public function testArgsAreKnownDeeply()
|
public function testArgsAreKnownDeeply()
|
||||||
{
|
{
|
||||||
@ -91,7 +91,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it directive args are known
|
* @see it('directive args are known')
|
||||||
*/
|
*/
|
||||||
public function testDirectiveArgsAreKnown()
|
public function testDirectiveArgsAreKnown()
|
||||||
{
|
{
|
||||||
@ -103,7 +103,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it undirective args are invalid
|
* @see it('undirective args are invalid')
|
||||||
*/
|
*/
|
||||||
public function testUndirectiveArgsAreInvalid()
|
public function testUndirectiveArgsAreInvalid()
|
||||||
{
|
{
|
||||||
@ -117,7 +117,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it misspelled directive args are reported
|
* @see it('misspelled directive args are reported')
|
||||||
*/
|
*/
|
||||||
public function testMisspelledDirectiveArgsAreReported()
|
public function testMisspelledDirectiveArgsAreReported()
|
||||||
{
|
{
|
||||||
@ -131,7 +131,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it invalid arg name
|
* @see it('invalid arg name')
|
||||||
*/
|
*/
|
||||||
public function testInvalidArgName()
|
public function testInvalidArgName()
|
||||||
{
|
{
|
||||||
@ -145,7 +145,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it misspelled arg name is reported
|
* @see it('misspelled arg name is reported')
|
||||||
*/
|
*/
|
||||||
public function testMisspelledArgNameIsReported()
|
public function testMisspelledArgNameIsReported()
|
||||||
{
|
{
|
||||||
@ -159,7 +159,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unknown args amongst known args
|
* @see it('unknown args amongst known args')
|
||||||
*/
|
*/
|
||||||
public function testUnknownArgsAmongstKnownArgs()
|
public function testUnknownArgsAmongstKnownArgs()
|
||||||
{
|
{
|
||||||
@ -174,7 +174,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unknown args deeply
|
* @see it('unknown args deeply')
|
||||||
*/
|
*/
|
||||||
public function testUnknownArgsDeeply()
|
public function testUnknownArgsDeeply()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
// Validate: Known directives
|
// Validate: Known directives
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with no directives
|
* @see it('with no directives')
|
||||||
*/
|
*/
|
||||||
public function testWithNoDirectives()
|
public function testWithNoDirectives()
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with known directives
|
* @see it('with known directives')
|
||||||
*/
|
*/
|
||||||
public function testWithKnownDirectives()
|
public function testWithKnownDirectives()
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with unknown directive
|
* @see it('with unknown directive')
|
||||||
*/
|
*/
|
||||||
public function testWithUnknownDirective()
|
public function testWithUnknownDirective()
|
||||||
{
|
{
|
||||||
@ -60,7 +60,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with many unknown directives
|
* @see it('with many unknown directives')
|
||||||
*/
|
*/
|
||||||
public function testWithManyUnknownDirectives()
|
public function testWithManyUnknownDirectives()
|
||||||
{
|
{
|
||||||
@ -84,7 +84,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with well placed directives
|
* @see it('with well placed directives')
|
||||||
*/
|
*/
|
||||||
public function testWithWellPlacedDirectives()
|
public function testWithWellPlacedDirectives()
|
||||||
{
|
{
|
||||||
@ -103,7 +103,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with misplaced directives
|
* @see it('with misplaced directives')
|
||||||
*/
|
*/
|
||||||
public function testWithMisplacedDirectives()
|
public function testWithMisplacedDirectives()
|
||||||
{
|
{
|
||||||
@ -127,7 +127,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
// within schema language
|
// within schema language
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with well placed directives
|
* @see it('with well placed directives')
|
||||||
*/
|
*/
|
||||||
public function testWSLWithWellPlacedDirectives()
|
public function testWSLWithWellPlacedDirectives()
|
||||||
{
|
{
|
||||||
@ -171,7 +171,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with misplaced directives
|
* @see it('with misplaced directives')
|
||||||
*/
|
*/
|
||||||
public function testWSLWithMisplacedDirectives()
|
public function testWSLWithMisplacedDirectives()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class KnownFragmentNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Known fragment names
|
// Validate: Known fragment names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it known fragment names are valid
|
* @see it('known fragment names are valid')
|
||||||
*/
|
*/
|
||||||
public function testKnownFragmentNamesAreValid()
|
public function testKnownFragmentNamesAreValid()
|
||||||
{
|
{
|
||||||
@ -37,7 +37,7 @@ class KnownFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unknown fragment names are invalid
|
* @see it('unknown fragment names are invalid')
|
||||||
*/
|
*/
|
||||||
public function testUnknownFragmentNamesAreInvalid()
|
public function testUnknownFragmentNamesAreInvalid()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class KnownTypeNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Known type names
|
// Validate: Known type names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it known type names are valid
|
* @see it('known type names are valid')
|
||||||
*/
|
*/
|
||||||
public function testKnownTypeNamesAreValid()
|
public function testKnownTypeNamesAreValid()
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ class KnownTypeNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unknown type names are invalid
|
* @see it('unknown type names are invalid')
|
||||||
*/
|
*/
|
||||||
public function testUnknownTypeNamesAreInvalid()
|
public function testUnknownTypeNamesAreInvalid()
|
||||||
{
|
{
|
||||||
@ -49,7 +49,7 @@ class KnownTypeNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores type definitions
|
* @see it('ignores type definitions')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresTypeDefinitions()
|
public function testIgnoresTypeDefinitions()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
// Validate: Anonymous operation must be alone
|
// Validate: Anonymous operation must be alone
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no operations
|
* @see it('no operations')
|
||||||
*/
|
*/
|
||||||
public function testNoOperations()
|
public function testNoOperations()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it one anon operation
|
* @see it('one anon operation')
|
||||||
*/
|
*/
|
||||||
public function testOneAnonOperation()
|
public function testOneAnonOperation()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple named operations
|
* @see it('multiple named operations')
|
||||||
*/
|
*/
|
||||||
public function testMultipleNamedOperations()
|
public function testMultipleNamedOperations()
|
||||||
{
|
{
|
||||||
@ -50,7 +50,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it anon operation with fragment
|
* @see it('anon operation with fragment')
|
||||||
*/
|
*/
|
||||||
public function testAnonOperationWithFragment()
|
public function testAnonOperationWithFragment()
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple anon operations
|
* @see it('multiple anon operations')
|
||||||
*/
|
*/
|
||||||
public function testMultipleAnonOperations()
|
public function testMultipleAnonOperations()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it anon operation with a mutation
|
* @see it('anon operation with a mutation')
|
||||||
*/
|
*/
|
||||||
public function testAnonOperationWithMutation()
|
public function testAnonOperationWithMutation()
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it anon operation with a subscription
|
* @see it('anon operation with a subscription')
|
||||||
*/
|
*/
|
||||||
public function testAnonOperationWithSubscription()
|
public function testAnonOperationWithSubscription()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
// Validate: No circular fragment spreads
|
// Validate: No circular fragment spreads
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it single reference is valid
|
* @see it('single reference is valid')
|
||||||
*/
|
*/
|
||||||
public function testSingleReferenceIsValid()
|
public function testSingleReferenceIsValid()
|
||||||
{
|
{
|
||||||
@ -21,7 +21,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it spreading twice is not circular
|
* @see it('spreading twice is not circular')
|
||||||
*/
|
*/
|
||||||
public function testSpreadingTwiceIsNotCircular()
|
public function testSpreadingTwiceIsNotCircular()
|
||||||
{
|
{
|
||||||
@ -32,7 +32,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it spreading twice indirectly is not circular
|
* @see it('spreading twice indirectly is not circular')
|
||||||
*/
|
*/
|
||||||
public function testSpreadingTwiceIndirectlyIsNotCircular()
|
public function testSpreadingTwiceIndirectlyIsNotCircular()
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it double spread within abstract types
|
* @see it('double spread within abstract types')
|
||||||
*/
|
*/
|
||||||
public function testDoubleSpreadWithinAbstractTypes()
|
public function testDoubleSpreadWithinAbstractTypes()
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not false positive on unknown fragment
|
* @see it('does not false positive on unknown fragment')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotFalsePositiveOnUnknownFragment()
|
public function testDoesNotFalsePositiveOnUnknownFragment()
|
||||||
{
|
{
|
||||||
@ -74,7 +74,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it spreading recursively within field fails
|
* @see it('spreading recursively within field fails')
|
||||||
*/
|
*/
|
||||||
public function testSpreadingRecursivelyWithinFieldFails()
|
public function testSpreadingRecursivelyWithinFieldFails()
|
||||||
{
|
{
|
||||||
@ -86,7 +86,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself directly
|
* @see it('no spreading itself directly')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfDirectly()
|
public function testNoSpreadingItselfDirectly()
|
||||||
{
|
{
|
||||||
@ -98,7 +98,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself directly within inline fragment
|
* @see it('no spreading itself directly within inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfDirectlyWithinInlineFragment()
|
public function testNoSpreadingItselfDirectlyWithinInlineFragment()
|
||||||
{
|
{
|
||||||
@ -114,7 +114,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself indirectly
|
* @see it('no spreading itself indirectly')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfIndirectly()
|
public function testNoSpreadingItselfIndirectly()
|
||||||
{
|
{
|
||||||
@ -130,7 +130,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself indirectly reports opposite order
|
* @see it('no spreading itself indirectly reports opposite order')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfIndirectlyReportsOppositeOrder()
|
public function testNoSpreadingItselfIndirectlyReportsOppositeOrder()
|
||||||
{
|
{
|
||||||
@ -146,7 +146,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself indirectly within inline fragment
|
* @see it('no spreading itself indirectly within inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfIndirectlyWithinInlineFragment()
|
public function testNoSpreadingItselfIndirectlyWithinInlineFragment()
|
||||||
{
|
{
|
||||||
@ -170,7 +170,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself deeply
|
* @see it('no spreading itself deeply')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfDeeply()
|
public function testNoSpreadingItselfDeeply()
|
||||||
{
|
{
|
||||||
@ -208,7 +208,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself deeply two paths
|
* @see it('no spreading itself deeply two paths')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfDeeplyTwoPaths()
|
public function testNoSpreadingItselfDeeplyTwoPaths()
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself deeply two paths -- alt traverse order
|
* @see it('no spreading itself deeply two paths -- alt traverse order')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfDeeplyTwoPathsTraverseOrder()
|
public function testNoSpreadingItselfDeeplyTwoPathsTraverseOrder()
|
||||||
{
|
{
|
||||||
@ -250,7 +250,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no spreading itself deeply and immediately
|
* @see it('no spreading itself deeply and immediately')
|
||||||
*/
|
*/
|
||||||
public function testNoSpreadingItselfDeeplyAndImmediately()
|
public function testNoSpreadingItselfDeeplyAndImmediately()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
// Validate: No undefined variables
|
// Validate: No undefined variables
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it all variables defined
|
* @see it('all variables defined')
|
||||||
*/
|
*/
|
||||||
public function testAllVariablesDefined()
|
public function testAllVariablesDefined()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it all variables deeply defined
|
* @see it('all variables deeply defined')
|
||||||
*/
|
*/
|
||||||
public function testAllVariablesDeeplyDefined()
|
public function testAllVariablesDeeplyDefined()
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it all variables deeply in inline fragments defined
|
* @see it('all variables deeply in inline fragments defined')
|
||||||
*/
|
*/
|
||||||
public function testAllVariablesDeeplyInInlineFragmentsDefined()
|
public function testAllVariablesDeeplyInInlineFragmentsDefined()
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it all variables in fragments deeply defined
|
* @see it('all variables in fragments deeply defined')
|
||||||
*/
|
*/
|
||||||
public function testAllVariablesInFragmentsDeeplyDefined()
|
public function testAllVariablesInFragmentsDeeplyDefined()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable within single fragment defined in multiple operations
|
* @see it('variable within single fragment defined in multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testVariableWithinSingleFragmentDefinedInMultipleOperations()
|
public function testVariableWithinSingleFragmentDefinedInMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -102,7 +102,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable within fragments defined in operations
|
* @see it('variable within fragments defined in operations')
|
||||||
*/
|
*/
|
||||||
public function testVariableWithinFragmentsDefinedInOperations()
|
public function testVariableWithinFragmentsDefinedInOperations()
|
||||||
{
|
{
|
||||||
@ -123,7 +123,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable within recursive fragment defined
|
* @see it('variable within recursive fragment defined')
|
||||||
*/
|
*/
|
||||||
public function testVariableWithinRecursiveFragmentDefined()
|
public function testVariableWithinRecursiveFragmentDefined()
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable not defined
|
* @see it('variable not defined')
|
||||||
*/
|
*/
|
||||||
public function testVariableNotDefined()
|
public function testVariableNotDefined()
|
||||||
{
|
{
|
||||||
@ -154,7 +154,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable not defined by un-named query
|
* @see it('variable not defined by un-named query')
|
||||||
*/
|
*/
|
||||||
public function testVariableNotDefinedByUnNamedQuery()
|
public function testVariableNotDefinedByUnNamedQuery()
|
||||||
{
|
{
|
||||||
@ -168,7 +168,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple variables not defined
|
* @see it('multiple variables not defined')
|
||||||
*/
|
*/
|
||||||
public function testMultipleVariablesNotDefined()
|
public function testMultipleVariablesNotDefined()
|
||||||
{
|
{
|
||||||
@ -183,7 +183,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable in fragment not defined by un-named query
|
* @see it('variable in fragment not defined by un-named query')
|
||||||
*/
|
*/
|
||||||
public function testVariableInFragmentNotDefinedByUnNamedQuery()
|
public function testVariableInFragmentNotDefinedByUnNamedQuery()
|
||||||
{
|
{
|
||||||
@ -200,7 +200,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable in fragment not defined by operation
|
* @see it('variable in fragment not defined by operation')
|
||||||
*/
|
*/
|
||||||
public function testVariableInFragmentNotDefinedByOperation()
|
public function testVariableInFragmentNotDefinedByOperation()
|
||||||
{
|
{
|
||||||
@ -227,7 +227,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple variables in fragments not defined
|
* @see it('multiple variables in fragments not defined')
|
||||||
*/
|
*/
|
||||||
public function testMultipleVariablesInFragmentsNotDefined()
|
public function testMultipleVariablesInFragmentsNotDefined()
|
||||||
{
|
{
|
||||||
@ -255,7 +255,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it single variable in fragment not defined by multiple operations
|
* @see it('single variable in fragment not defined by multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testSingleVariableInFragmentNotDefinedByMultipleOperations()
|
public function testSingleVariableInFragmentNotDefinedByMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -276,7 +276,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables in fragment not defined by multiple operations
|
* @see it('variables in fragment not defined by multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testVariablesInFragmentNotDefinedByMultipleOperations()
|
public function testVariablesInFragmentNotDefinedByMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -297,7 +297,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable in fragment used by other operation
|
* @see it('variable in fragment used by other operation')
|
||||||
*/
|
*/
|
||||||
public function testVariableInFragmentUsedByOtherOperation()
|
public function testVariableInFragmentUsedByOtherOperation()
|
||||||
{
|
{
|
||||||
@ -321,7 +321,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple undefined variables produce multiple errors
|
* @see it('multiple undefined variables produce multiple errors')
|
||||||
*/
|
*/
|
||||||
public function testMultipleUndefinedVariablesProduceMultipleErrors()
|
public function testMultipleUndefinedVariablesProduceMultipleErrors()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
|||||||
// Validate: No unused fragments
|
// Validate: No unused fragments
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it all fragment names are used
|
* @see it('all fragment names are used')
|
||||||
*/
|
*/
|
||||||
public function testAllFragmentNamesAreUsed()
|
public function testAllFragmentNamesAreUsed()
|
||||||
{
|
{
|
||||||
@ -37,7 +37,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it all fragment names are used by multiple operations
|
* @see it('all fragment names are used by multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testAllFragmentNamesAreUsedByMultipleOperations()
|
public function testAllFragmentNamesAreUsedByMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it contains unknown fragments
|
* @see it('contains unknown fragments')
|
||||||
*/
|
*/
|
||||||
public function testContainsUnknownFragments()
|
public function testContainsUnknownFragments()
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it contains unknown fragments with ref cycle
|
* @see it('contains unknown fragments with ref cycle')
|
||||||
*/
|
*/
|
||||||
public function testContainsUnknownFragmentsWithRefCycle()
|
public function testContainsUnknownFragmentsWithRefCycle()
|
||||||
{
|
{
|
||||||
@ -144,7 +144,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it contains unknown and undef fragments
|
* @see it('contains unknown and undef fragments')
|
||||||
*/
|
*/
|
||||||
public function testContainsUnknownAndUndefFragments()
|
public function testContainsUnknownAndUndefFragments()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
// Validate: No unused variables
|
// Validate: No unused variables
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses all variables
|
* @see it('uses all variables')
|
||||||
*/
|
*/
|
||||||
public function testUsesAllVariables()
|
public function testUsesAllVariables()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses all variables deeply
|
* @see it('uses all variables deeply')
|
||||||
*/
|
*/
|
||||||
public function testUsesAllVariablesDeeply()
|
public function testUsesAllVariablesDeeply()
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses all variables deeply in inline fragments
|
* @see it('uses all variables deeply in inline fragments')
|
||||||
*/
|
*/
|
||||||
public function testUsesAllVariablesDeeplyInInlineFragments()
|
public function testUsesAllVariablesDeeplyInInlineFragments()
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it uses all variables in fragments
|
* @see it('uses all variables in fragments')
|
||||||
*/
|
*/
|
||||||
public function testUsesAllVariablesInFragments()
|
public function testUsesAllVariablesInFragments()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable used by fragment in multiple operations
|
* @see it('variable used by fragment in multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testVariableUsedByFragmentInMultipleOperations()
|
public function testVariableUsedByFragmentInMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable used by recursive fragment
|
* @see it('variable used by recursive fragment')
|
||||||
*/
|
*/
|
||||||
public function testVariableUsedByRecursiveFragment()
|
public function testVariableUsedByRecursiveFragment()
|
||||||
{
|
{
|
||||||
@ -121,7 +121,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable not used
|
* @see it('variable not used')
|
||||||
*/
|
*/
|
||||||
public function testVariableNotUsed()
|
public function testVariableNotUsed()
|
||||||
{
|
{
|
||||||
@ -135,7 +135,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple variables not used
|
* @see it('multiple variables not used')
|
||||||
*/
|
*/
|
||||||
public function testMultipleVariablesNotUsed()
|
public function testMultipleVariablesNotUsed()
|
||||||
{
|
{
|
||||||
@ -150,7 +150,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable not used in fragments
|
* @see it('variable not used in fragments')
|
||||||
*/
|
*/
|
||||||
public function testVariableNotUsedInFragments()
|
public function testVariableNotUsedInFragments()
|
||||||
{
|
{
|
||||||
@ -177,7 +177,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple variables not used
|
* @see it('multiple variables not used')
|
||||||
*/
|
*/
|
||||||
public function testMultipleVariablesNotUsed2()
|
public function testMultipleVariablesNotUsed2()
|
||||||
{
|
{
|
||||||
@ -205,7 +205,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable not used by unreferenced fragment
|
* @see it('variable not used by unreferenced fragment')
|
||||||
*/
|
*/
|
||||||
public function testVariableNotUsedByUnreferencedFragment()
|
public function testVariableNotUsedByUnreferencedFragment()
|
||||||
{
|
{
|
||||||
@ -225,7 +225,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variable not used by fragment used by other operation
|
* @see it('variable not used by fragment used by other operation')
|
||||||
*/
|
*/
|
||||||
public function testVariableNotUsedByFragmentUsedByOtherOperation()
|
public function testVariableNotUsedByFragmentUsedByOtherOperation()
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
// Validate: Overlapping fields can be merged
|
// Validate: Overlapping fields can be merged
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unique fields
|
* @see it('unique fields')
|
||||||
*/
|
*/
|
||||||
public function testUniqueFields()
|
public function testUniqueFields()
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identical fields
|
* @see it('identical fields')
|
||||||
*/
|
*/
|
||||||
public function testIdenticalFields()
|
public function testIdenticalFields()
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identical fields with identical args
|
* @see it('identical fields with identical args')
|
||||||
*/
|
*/
|
||||||
public function testIdenticalFieldsWithIdenticalArgs()
|
public function testIdenticalFieldsWithIdenticalArgs()
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it identical fields with identical directives
|
* @see it('identical fields with identical directives')
|
||||||
*/
|
*/
|
||||||
public function testIdenticalFieldsWithIdenticalDirectives()
|
public function testIdenticalFieldsWithIdenticalDirectives()
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different args with different aliases
|
* @see it('different args with different aliases')
|
||||||
*/
|
*/
|
||||||
public function testDifferentArgsWithDifferentAliases()
|
public function testDifferentArgsWithDifferentAliases()
|
||||||
{
|
{
|
||||||
@ -79,7 +79,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different directives with different aliases
|
* @see it('different directives with different aliases')
|
||||||
*/
|
*/
|
||||||
public function testDifferentDirectivesWithDifferentAliases()
|
public function testDifferentDirectivesWithDifferentAliases()
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different skip/include directives accepted
|
* @see it('different skip/include directives accepted')
|
||||||
*/
|
*/
|
||||||
public function testDifferentSkipIncludeDirectivesAccepted()
|
public function testDifferentSkipIncludeDirectivesAccepted()
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Same aliases with different field targets
|
* @see it('Same aliases with different field targets')
|
||||||
*/
|
*/
|
||||||
public function testSameAliasesWithDifferentFieldTargets()
|
public function testSameAliasesWithDifferentFieldTargets()
|
||||||
{
|
{
|
||||||
@ -126,7 +126,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Same aliases allowed on non-overlapping fields
|
* @see it('Same aliases allowed on non-overlapping fields')
|
||||||
*/
|
*/
|
||||||
public function testSameAliasesAllowedOnNonOverlappingFields()
|
public function testSameAliasesAllowedOnNonOverlappingFields()
|
||||||
{
|
{
|
||||||
@ -145,7 +145,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Alias masking direct field access
|
* @see it('Alias masking direct field access')
|
||||||
*/
|
*/
|
||||||
public function testAliasMaskingDirectFieldAccess()
|
public function testAliasMaskingDirectFieldAccess()
|
||||||
{
|
{
|
||||||
@ -163,7 +163,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different args, second adds an argument
|
* @see it('different args, second adds an argument')
|
||||||
*/
|
*/
|
||||||
public function testDifferentArgsSecondAddsAnArgument()
|
public function testDifferentArgsSecondAddsAnArgument()
|
||||||
{
|
{
|
||||||
@ -181,7 +181,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different args, second missing an argument
|
* @see it('different args, second missing an argument')
|
||||||
*/
|
*/
|
||||||
public function testDifferentArgsSecondMissingAnArgument()
|
public function testDifferentArgsSecondMissingAnArgument()
|
||||||
{
|
{
|
||||||
@ -201,7 +201,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it conflicting args
|
* @see it('conflicting args')
|
||||||
*/
|
*/
|
||||||
public function testConflictingArgs()
|
public function testConflictingArgs()
|
||||||
{
|
{
|
||||||
@ -219,7 +219,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows different args where no conflict is possible
|
* @see it('allows different args where no conflict is possible')
|
||||||
*/
|
*/
|
||||||
public function testAllowsDifferentArgsWhereNoConflictIsPossible()
|
public function testAllowsDifferentArgsWhereNoConflictIsPossible()
|
||||||
{
|
{
|
||||||
@ -238,7 +238,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it encounters conflict in fragments
|
* @see it('encounters conflict in fragments')
|
||||||
*/
|
*/
|
||||||
public function testEncountersConflictInFragments()
|
public function testEncountersConflictInFragments()
|
||||||
{
|
{
|
||||||
@ -262,7 +262,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports each conflict once
|
* @see it('reports each conflict once')
|
||||||
*/
|
*/
|
||||||
public function testReportsEachConflictOnce()
|
public function testReportsEachConflictOnce()
|
||||||
{
|
{
|
||||||
@ -305,7 +305,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it deep conflict
|
* @see it('deep conflict')
|
||||||
*/
|
*/
|
||||||
public function testDeepConflict()
|
public function testDeepConflict()
|
||||||
{
|
{
|
||||||
@ -332,7 +332,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it deep conflict with multiple issues
|
* @see it('deep conflict with multiple issues')
|
||||||
*/
|
*/
|
||||||
public function testDeepConflictWithMultipleIssues()
|
public function testDeepConflictWithMultipleIssues()
|
||||||
{
|
{
|
||||||
@ -366,7 +366,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it very deep conflict
|
* @see it('very deep conflict')
|
||||||
*/
|
*/
|
||||||
public function testVeryDeepConflict()
|
public function testVeryDeepConflict()
|
||||||
{
|
{
|
||||||
@ -399,7 +399,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports deep conflict to nearest common ancestor
|
* @see it('reports deep conflict to nearest common ancestor')
|
||||||
*/
|
*/
|
||||||
public function testReportsDeepConflictToNearestCommonAncestor()
|
public function testReportsDeepConflictToNearestCommonAncestor()
|
||||||
{
|
{
|
||||||
@ -433,7 +433,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports deep conflict to nearest common ancestor in fragments
|
* @see it('reports deep conflict to nearest common ancestor in fragments')
|
||||||
*/
|
*/
|
||||||
public function testReportsDeepConflictToNearestCommonAncestorInFragments()
|
public function testReportsDeepConflictToNearestCommonAncestorInFragments()
|
||||||
{
|
{
|
||||||
@ -475,7 +475,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports deep conflict in nested fragments
|
* @see it('reports deep conflict in nested fragments')
|
||||||
*/
|
*/
|
||||||
public function testReportsDeepConflictInNestedFragments()
|
public function testReportsDeepConflictInNestedFragments()
|
||||||
{
|
{
|
||||||
@ -521,7 +521,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores unknown fragments
|
* @see it('ignores unknown fragments')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresUnknownFragments()
|
public function testIgnoresUnknownFragments()
|
||||||
{
|
{
|
||||||
@ -542,7 +542,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
// Describe: return types must be unambiguous
|
// Describe: return types must be unambiguous
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it conflicting return types which potentially overlap
|
* @see it('conflicting return types which potentially overlap')
|
||||||
*/
|
*/
|
||||||
public function testConflictingReturnTypesWhichPotentiallyOverlap()
|
public function testConflictingReturnTypesWhichPotentiallyOverlap()
|
||||||
{
|
{
|
||||||
@ -574,7 +574,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it compatible return shapes on different return types
|
* @see it('compatible return shapes on different return types')
|
||||||
*/
|
*/
|
||||||
public function testCompatibleReturnShapesOnDifferentReturnTypes()
|
public function testCompatibleReturnShapesOnDifferentReturnTypes()
|
||||||
{
|
{
|
||||||
@ -600,7 +600,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it disallows differing return types despite no overlap
|
* @see it('disallows differing return types despite no overlap')
|
||||||
*/
|
*/
|
||||||
public function testDisallowsDifferingReturnTypesDespiteNoOverlap()
|
public function testDisallowsDifferingReturnTypesDespiteNoOverlap()
|
||||||
{
|
{
|
||||||
@ -628,7 +628,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports correctly when a non-exclusive follows an exclusive
|
* @see it('reports correctly when a non-exclusive follows an exclusive')
|
||||||
*/
|
*/
|
||||||
public function testReportsCorrectlyWhenANonExclusiveFollowsAnExclusive()
|
public function testReportsCorrectlyWhenANonExclusiveFollowsAnExclusive()
|
||||||
{
|
{
|
||||||
@ -692,7 +692,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it disallows differing return type nullability despite no overlap
|
* @see it('disallows differing return type nullability despite no overlap')
|
||||||
*/
|
*/
|
||||||
public function testDisallowsDifferingReturnTypeNullabilityDespiteNoOverlap()
|
public function testDisallowsDifferingReturnTypeNullabilityDespiteNoOverlap()
|
||||||
{
|
{
|
||||||
@ -720,7 +720,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it disallows differing return type list despite no overlap
|
* @see it('disallows differing return type list despite no overlap')
|
||||||
*/
|
*/
|
||||||
public function testDisallowsDifferingReturnTypeListDespiteNoOverlap()
|
public function testDisallowsDifferingReturnTypeListDespiteNoOverlap()
|
||||||
{
|
{
|
||||||
@ -810,7 +810,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it disallows differing deep return types despite no overlap
|
* @see it('disallows differing deep return types despite no overlap')
|
||||||
*/
|
*/
|
||||||
public function testDisallowsDifferingDeepReturnTypesDespiteNoOverlap()
|
public function testDisallowsDifferingDeepReturnTypesDespiteNoOverlap()
|
||||||
{
|
{
|
||||||
@ -846,7 +846,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows non-conflicting overlaping types
|
* @see it('allows non-conflicting overlaping types')
|
||||||
*/
|
*/
|
||||||
public function testAllowsNonConflictingOverlapingTypes()
|
public function testAllowsNonConflictingOverlapingTypes()
|
||||||
{
|
{
|
||||||
@ -865,7 +865,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same wrapped scalar return types
|
* @see it('same wrapped scalar return types')
|
||||||
*/
|
*/
|
||||||
public function testSameWrappedScalarReturnTypes()
|
public function testSameWrappedScalarReturnTypes()
|
||||||
{
|
{
|
||||||
@ -884,7 +884,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows inline typeless fragments
|
* @see it('allows inline typeless fragments')
|
||||||
*/
|
*/
|
||||||
public function testAllowsInlineTypelessFragments()
|
public function testAllowsInlineTypelessFragments()
|
||||||
{
|
{
|
||||||
@ -899,7 +899,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it compares deep types including list
|
* @see it('compares deep types including list')
|
||||||
*/
|
*/
|
||||||
public function testComparesDeepTypesIncludingList()
|
public function testComparesDeepTypesIncludingList()
|
||||||
{
|
{
|
||||||
@ -938,7 +938,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores unknown types
|
* @see it('ignores unknown types')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresUnknownTypes()
|
public function testIgnoresUnknownTypes()
|
||||||
{
|
{
|
||||||
@ -957,7 +957,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it error message contains hint for alias conflict
|
* @see it('error message contains hint for alias conflict')
|
||||||
*/
|
*/
|
||||||
public function testErrorMessageContainsHintForAliasConflict()
|
public function testErrorMessageContainsHintForAliasConflict()
|
||||||
{
|
{
|
||||||
@ -970,7 +970,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not infinite loop on recursive fragment
|
* @see it('does not infinite loop on recursive fragment')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotInfiniteLoopOnRecursiveFragment()
|
public function testDoesNotInfiniteLoopOnRecursiveFragment()
|
||||||
{
|
{
|
||||||
@ -980,7 +980,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not infinite loop on immediately recursive fragment
|
* @see it('does not infinite loop on immediately recursive fragment')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotInfiniteLoopOnImmeditelyRecursiveFragment()
|
public function testDoesNotInfiniteLoopOnImmeditelyRecursiveFragment()
|
||||||
{
|
{
|
||||||
@ -990,7 +990,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it does not infinite loop on transitively recursive fragment
|
* @see it('does not infinite loop on transitively recursive fragment')
|
||||||
*/
|
*/
|
||||||
public function testDoesNotInfiniteLoopOnTransitivelyRecursiveFragment()
|
public function testDoesNotInfiniteLoopOnTransitivelyRecursiveFragment()
|
||||||
{
|
{
|
||||||
@ -1002,7 +1002,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it find invalid case even with immediately recursive fragment
|
* @see it('find invalid case even with immediately recursive fragment')
|
||||||
*/
|
*/
|
||||||
public function testFindInvalidCaseEvenWithImmediatelyRecursiveFragment()
|
public function testFindInvalidCaseEvenWithImmediatelyRecursiveFragment()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
// Validate: Possible fragment spreads
|
// Validate: Possible fragment spreads
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it of the same object
|
* @see it('of the same object')
|
||||||
*/
|
*/
|
||||||
public function testOfTheSameObject()
|
public function testOfTheSameObject()
|
||||||
{
|
{
|
||||||
@ -21,7 +21,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it of the same object with inline fragment
|
* @see it('of the same object with inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testOfTheSameObjectWithInlineFragment()
|
public function testOfTheSameObjectWithInlineFragment()
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object into an implemented interface
|
* @see it('object into an implemented interface')
|
||||||
*/
|
*/
|
||||||
public function testObjectIntoAnImplementedInterface()
|
public function testObjectIntoAnImplementedInterface()
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object into containing union
|
* @see it('object into containing union')
|
||||||
*/
|
*/
|
||||||
public function testObjectIntoContainingUnion()
|
public function testObjectIntoContainingUnion()
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union into contained object
|
* @see it('union into contained object')
|
||||||
*/
|
*/
|
||||||
public function testUnionIntoContainedObject()
|
public function testUnionIntoContainedObject()
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union into overlapping interface
|
* @see it('union into overlapping interface')
|
||||||
*/
|
*/
|
||||||
public function testUnionIntoOverlappingInterface()
|
public function testUnionIntoOverlappingInterface()
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union into overlapping union
|
* @see it('union into overlapping union')
|
||||||
*/
|
*/
|
||||||
public function testUnionIntoOverlappingUnion()
|
public function testUnionIntoOverlappingUnion()
|
||||||
{
|
{
|
||||||
@ -86,7 +86,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into implemented object
|
* @see it('interface into implemented object')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoImplementedObject()
|
public function testInterfaceIntoImplementedObject()
|
||||||
{
|
{
|
||||||
@ -97,7 +97,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into overlapping interface
|
* @see it('interface into overlapping interface')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoOverlappingInterface()
|
public function testInterfaceIntoOverlappingInterface()
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into overlapping interface in inline fragment
|
* @see it('interface into overlapping interface in inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoOverlappingInterfaceInInlineFragment()
|
public function testInterfaceIntoOverlappingInterfaceInInlineFragment()
|
||||||
{
|
{
|
||||||
@ -118,7 +118,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into overlapping union
|
* @see it('interface into overlapping union')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoOverlappingUnion()
|
public function testInterfaceIntoOverlappingUnion()
|
||||||
{
|
{
|
||||||
@ -129,7 +129,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores incorrect type (caught by FragmentsOnCompositeTypes)
|
* @see it('ignores incorrect type (caught by FragmentsOnCompositeTypes)')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresIncorrectTypeCaughtByFragmentsOnCompositeTypes()
|
public function testIgnoresIncorrectTypeCaughtByFragmentsOnCompositeTypes()
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different object into object
|
* @see it('different object into object')
|
||||||
*/
|
*/
|
||||||
public function testDifferentObjectIntoObject()
|
public function testDifferentObjectIntoObject()
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different object into object in inline fragment
|
* @see it('different object into object in inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testDifferentObjectIntoObjectInInlineFragment()
|
public function testDifferentObjectIntoObjectInInlineFragment()
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object into not implementing interface
|
* @see it('object into not implementing interface')
|
||||||
*/
|
*/
|
||||||
public function testObjectIntoNotImplementingInterface()
|
public function testObjectIntoNotImplementingInterface()
|
||||||
{
|
{
|
||||||
@ -180,7 +180,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object into not containing union
|
* @see it('object into not containing union')
|
||||||
*/
|
*/
|
||||||
public function testObjectIntoNotContainingUnion()
|
public function testObjectIntoNotContainingUnion()
|
||||||
{
|
{
|
||||||
@ -193,7 +193,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union into not contained object
|
* @see it('union into not contained object')
|
||||||
*/
|
*/
|
||||||
public function testUnionIntoNotContainedObject()
|
public function testUnionIntoNotContainedObject()
|
||||||
{
|
{
|
||||||
@ -206,7 +206,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union into non overlapping interface
|
* @see it('union into non overlapping interface')
|
||||||
*/
|
*/
|
||||||
public function testUnionIntoNonOverlappingInterface()
|
public function testUnionIntoNonOverlappingInterface()
|
||||||
{
|
{
|
||||||
@ -219,7 +219,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it union into non overlapping union
|
* @see it('union into non overlapping union')
|
||||||
*/
|
*/
|
||||||
public function testUnionIntoNonOverlappingUnion()
|
public function testUnionIntoNonOverlappingUnion()
|
||||||
{
|
{
|
||||||
@ -232,7 +232,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into non implementing object
|
* @see it('interface into non implementing object')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoNonImplementingObject()
|
public function testInterfaceIntoNonImplementingObject()
|
||||||
{
|
{
|
||||||
@ -245,7 +245,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into non overlapping interface
|
* @see it('interface into non overlapping interface')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoNonOverlappingInterface()
|
public function testInterfaceIntoNonOverlappingInterface()
|
||||||
{
|
{
|
||||||
@ -261,7 +261,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into non overlapping interface in inline fragment
|
* @see it('interface into non overlapping interface in inline fragment')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoNonOverlappingInterfaceInInlineFragment()
|
public function testInterfaceIntoNonOverlappingInterfaceInInlineFragment()
|
||||||
{
|
{
|
||||||
@ -276,7 +276,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface into non overlapping union
|
* @see it('interface into non overlapping union')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceIntoNonOverlappingUnion()
|
public function testInterfaceIntoNonOverlappingUnion()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
// Validate: Provided required arguments
|
// Validate: Provided required arguments
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores unknown arguments
|
* @see it('ignores unknown arguments')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresUnknownArguments()
|
public function testIgnoresUnknownArguments()
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
// Valid non-nullable value:
|
// Valid non-nullable value:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Arg on optional arg
|
* @see it('Arg on optional arg')
|
||||||
*/
|
*/
|
||||||
public function testArgOnOptionalArg()
|
public function testArgOnOptionalArg()
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it No Arg on optional arg
|
* @see it('No Arg on optional arg')
|
||||||
*/
|
*/
|
||||||
public function testNoArgOnOptionalArg()
|
public function testNoArgOnOptionalArg()
|
||||||
{
|
{
|
||||||
@ -55,7 +55,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple args
|
* @see it('Multiple args')
|
||||||
*/
|
*/
|
||||||
public function testMultipleArgs()
|
public function testMultipleArgs()
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple args reverse order
|
* @see it('Multiple args reverse order')
|
||||||
*/
|
*/
|
||||||
public function testMultipleArgsReverseOrder()
|
public function testMultipleArgsReverseOrder()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it No args on multiple optional
|
* @see it('No args on multiple optional')
|
||||||
*/
|
*/
|
||||||
public function testNoArgsOnMultipleOptional()
|
public function testNoArgsOnMultipleOptional()
|
||||||
{
|
{
|
||||||
@ -97,7 +97,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it One arg on multiple optional
|
* @see it('One arg on multiple optional')
|
||||||
*/
|
*/
|
||||||
public function testOneArgOnMultipleOptional()
|
public function testOneArgOnMultipleOptional()
|
||||||
{
|
{
|
||||||
@ -111,7 +111,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Second arg on multiple optional
|
* @see it('Second arg on multiple optional')
|
||||||
*/
|
*/
|
||||||
public function testSecondArgOnMultipleOptional()
|
public function testSecondArgOnMultipleOptional()
|
||||||
{
|
{
|
||||||
@ -125,7 +125,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple reqs on mixedList
|
* @see it('Multiple reqs on mixedList')
|
||||||
*/
|
*/
|
||||||
public function testMultipleReqsOnMixedList()
|
public function testMultipleReqsOnMixedList()
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple reqs and one opt on mixedList
|
* @see it('Multiple reqs and one opt on mixedList')
|
||||||
*/
|
*/
|
||||||
public function testMultipleReqsAndOneOptOnMixedList()
|
public function testMultipleReqsAndOneOptOnMixedList()
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it All reqs and opts on mixedList
|
* @see it('All reqs and opts on mixedList')
|
||||||
*/
|
*/
|
||||||
public function testAllReqsAndOptsOnMixedList()
|
public function testAllReqsAndOptsOnMixedList()
|
||||||
{
|
{
|
||||||
@ -169,7 +169,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
// Invalid non-nullable value
|
// Invalid non-nullable value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Missing one non-nullable argument
|
* @see it('Missing one non-nullable argument')
|
||||||
*/
|
*/
|
||||||
public function testMissingOneNonNullableArgument()
|
public function testMissingOneNonNullableArgument()
|
||||||
{
|
{
|
||||||
@ -185,7 +185,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Missing multiple non-nullable arguments
|
* @see it('Missing multiple non-nullable arguments')
|
||||||
*/
|
*/
|
||||||
public function testMissingMultipleNonNullableArguments()
|
public function testMissingMultipleNonNullableArguments()
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Incorrect value and missing argument
|
* @see it('Incorrect value and missing argument')
|
||||||
*/
|
*/
|
||||||
public function testIncorrectValueAndMissingArgument()
|
public function testIncorrectValueAndMissingArgument()
|
||||||
{
|
{
|
||||||
@ -220,7 +220,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
// Describe: Directive arguments
|
// Describe: Directive arguments
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ignores unknown directives
|
* @see it('ignores unknown directives')
|
||||||
*/
|
*/
|
||||||
public function testIgnoresUnknownDirectives()
|
public function testIgnoresUnknownDirectives()
|
||||||
{
|
{
|
||||||
@ -232,7 +232,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with directives of valid types
|
* @see it('with directives of valid types')
|
||||||
*/
|
*/
|
||||||
public function testWithDirectivesOfValidTypes()
|
public function testWithDirectivesOfValidTypes()
|
||||||
{
|
{
|
||||||
@ -249,7 +249,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with directive with missing types
|
* @see it('with directive with missing types')
|
||||||
*/
|
*/
|
||||||
public function testWithDirectiveWithMissingTypes()
|
public function testWithDirectiveWithMissingTypes()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
// Validate: Scalar leafs
|
// Validate: Scalar leafs
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it valid scalar selection
|
* @see it('valid scalar selection')
|
||||||
*/
|
*/
|
||||||
public function testValidScalarSelection()
|
public function testValidScalarSelection()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it object type missing selection
|
* @see it('object type missing selection')
|
||||||
*/
|
*/
|
||||||
public function testObjectTypeMissingSelection()
|
public function testObjectTypeMissingSelection()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it interface type missing selection
|
* @see it('interface type missing selection')
|
||||||
*/
|
*/
|
||||||
public function testInterfaceTypeMissingSelection()
|
public function testInterfaceTypeMissingSelection()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it valid scalar selection with args
|
* @see it('valid scalar selection with args')
|
||||||
*/
|
*/
|
||||||
public function testValidScalarSelectionWithArgs()
|
public function testValidScalarSelectionWithArgs()
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it scalar selection not allowed on Boolean
|
* @see it('scalar selection not allowed on Boolean')
|
||||||
*/
|
*/
|
||||||
public function testScalarSelectionNotAllowedOnBoolean()
|
public function testScalarSelectionNotAllowedOnBoolean()
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it scalar selection not allowed on Enum
|
* @see it('scalar selection not allowed on Enum')
|
||||||
*/
|
*/
|
||||||
public function testScalarSelectionNotAllowedOnEnum()
|
public function testScalarSelectionNotAllowedOnEnum()
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it scalar selection not allowed with args
|
* @see it('scalar selection not allowed with args')
|
||||||
*/
|
*/
|
||||||
public function testScalarSelectionNotAllowedWithArgs()
|
public function testScalarSelectionNotAllowedWithArgs()
|
||||||
{
|
{
|
||||||
@ -99,7 +99,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Scalar selection not allowed with directives
|
* @see it('Scalar selection not allowed with directives')
|
||||||
*/
|
*/
|
||||||
public function testScalarSelectionNotAllowedWithDirectives()
|
public function testScalarSelectionNotAllowedWithDirectives()
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Scalar selection not allowed with directives and args
|
* @see it('Scalar selection not allowed with directives and args')
|
||||||
*/
|
*/
|
||||||
public function testScalarSelectionNotAllowedWithDirectivesAndArgs()
|
public function testScalarSelectionNotAllowedWithDirectivesAndArgs()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Unique argument names
|
// Validate: Unique argument names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no arguments on field
|
* @see it('no arguments on field')
|
||||||
*/
|
*/
|
||||||
public function testNoArgumentsOnField()
|
public function testNoArgumentsOnField()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no arguments on directive
|
* @see it('no arguments on directive')
|
||||||
*/
|
*/
|
||||||
public function testNoArgumentsOnDirective()
|
public function testNoArgumentsOnDirective()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it argument on field
|
* @see it('argument on field')
|
||||||
*/
|
*/
|
||||||
public function testArgumentOnField()
|
public function testArgumentOnField()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it argument on directive
|
* @see it('argument on directive')
|
||||||
*/
|
*/
|
||||||
public function testArgumentOnDirective()
|
public function testArgumentOnDirective()
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same argument on two fields
|
* @see it('same argument on two fields')
|
||||||
*/
|
*/
|
||||||
public function testSameArgumentOnTwoFields()
|
public function testSameArgumentOnTwoFields()
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same argument on field and directive
|
* @see it('same argument on field and directive')
|
||||||
*/
|
*/
|
||||||
public function testSameArgumentOnFieldAndDirective()
|
public function testSameArgumentOnFieldAndDirective()
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same argument on two directives
|
* @see it('same argument on two directives')
|
||||||
*/
|
*/
|
||||||
public function testSameArgumentOnTwoDirectives()
|
public function testSameArgumentOnTwoDirectives()
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple field arguments
|
* @see it('multiple field arguments')
|
||||||
*/
|
*/
|
||||||
public function testMultipleFieldArguments()
|
public function testMultipleFieldArguments()
|
||||||
{
|
{
|
||||||
@ -107,7 +107,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple directive arguments
|
* @see it('multiple directive arguments')
|
||||||
*/
|
*/
|
||||||
public function testMultipleDirectiveArguments()
|
public function testMultipleDirectiveArguments()
|
||||||
{
|
{
|
||||||
@ -119,7 +119,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it duplicate field arguments
|
* @see it('duplicate field arguments')
|
||||||
*/
|
*/
|
||||||
public function testDuplicateFieldArguments()
|
public function testDuplicateFieldArguments()
|
||||||
{
|
{
|
||||||
@ -133,7 +133,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it many duplicate field arguments
|
* @see it('many duplicate field arguments')
|
||||||
*/
|
*/
|
||||||
public function testManyDuplicateFieldArguments()
|
public function testManyDuplicateFieldArguments()
|
||||||
{
|
{
|
||||||
@ -148,7 +148,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it duplicate directive arguments
|
* @see it('duplicate directive arguments')
|
||||||
*/
|
*/
|
||||||
public function testDuplicateDirectiveArguments()
|
public function testDuplicateDirectiveArguments()
|
||||||
{
|
{
|
||||||
@ -162,7 +162,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it many duplicate directive arguments
|
* @see it('many duplicate directive arguments')
|
||||||
*/
|
*/
|
||||||
public function testManyDuplicateDirectiveArguments()
|
public function testManyDuplicateDirectiveArguments()
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ use GraphQL\Validator\Rules\UniqueDirectivesPerLocation;
|
|||||||
class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @it no directives
|
* @see it('no directives')
|
||||||
*/
|
*/
|
||||||
public function testNoDirectives()
|
public function testNoDirectives()
|
||||||
{
|
{
|
||||||
@ -18,7 +18,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unique directives in different locations
|
* @see it('unique directives in different locations')
|
||||||
*/
|
*/
|
||||||
public function testUniqueDirectivesInDifferentLocations()
|
public function testUniqueDirectivesInDifferentLocations()
|
||||||
{
|
{
|
||||||
@ -30,7 +30,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unique directives in same locations
|
* @see it('unique directives in same locations')
|
||||||
*/
|
*/
|
||||||
public function testUniqueDirectivesInSameLocations()
|
public function testUniqueDirectivesInSameLocations()
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same directives in different locations
|
* @see it('same directives in different locations')
|
||||||
*/
|
*/
|
||||||
public function testSameDirectivesInDifferentLocations()
|
public function testSameDirectivesInDifferentLocations()
|
||||||
{
|
{
|
||||||
@ -54,7 +54,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same directives in similar locations
|
* @see it('same directives in similar locations')
|
||||||
*/
|
*/
|
||||||
public function testSameDirectivesInSimilarLocations()
|
public function testSameDirectivesInSimilarLocations()
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it duplicate directives in one location
|
* @see it('duplicate directives in one location')
|
||||||
*/
|
*/
|
||||||
public function testDuplicateDirectivesInOneLocation()
|
public function testDuplicateDirectivesInOneLocation()
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it many duplicate directives in one location
|
* @see it('many duplicate directives in one location')
|
||||||
*/
|
*/
|
||||||
public function testManyDuplicateDirectivesInOneLocation()
|
public function testManyDuplicateDirectivesInOneLocation()
|
||||||
{
|
{
|
||||||
@ -96,7 +96,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it different duplicate directives in one location
|
* @see it('different duplicate directives in one location')
|
||||||
*/
|
*/
|
||||||
public function testDifferentDuplicateDirectivesInOneLocation()
|
public function testDifferentDuplicateDirectivesInOneLocation()
|
||||||
{
|
{
|
||||||
@ -111,7 +111,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it duplicate directives in many locations
|
* @see it('duplicate directives in many locations')
|
||||||
*/
|
*/
|
||||||
public function testDuplicateDirectivesInManyLocations()
|
public function testDuplicateDirectivesInManyLocations()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Unique fragment names
|
// Validate: Unique fragment names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no fragments
|
* @see it('no fragments')
|
||||||
*/
|
*/
|
||||||
public function testNoFragments()
|
public function testNoFragments()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it one fragment
|
* @see it('one fragment')
|
||||||
*/
|
*/
|
||||||
public function testOneFragment()
|
public function testOneFragment()
|
||||||
{
|
{
|
||||||
@ -38,7 +38,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it many fragments
|
* @see it('many fragments')
|
||||||
*/
|
*/
|
||||||
public function testManyFragments()
|
public function testManyFragments()
|
||||||
{
|
{
|
||||||
@ -61,7 +61,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it inline fragments are always unique
|
* @see it('inline fragments are always unique')
|
||||||
*/
|
*/
|
||||||
public function testInlineFragmentsAreAlwaysUnique()
|
public function testInlineFragmentsAreAlwaysUnique()
|
||||||
{
|
{
|
||||||
@ -78,7 +78,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fragment and operation named the same
|
* @see it('fragment and operation named the same')
|
||||||
*/
|
*/
|
||||||
public function testFragmentAndOperationNamedTheSame()
|
public function testFragmentAndOperationNamedTheSame()
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fragments named the same
|
* @see it('fragments named the same')
|
||||||
*/
|
*/
|
||||||
public function testFragmentsNamedTheSame()
|
public function testFragmentsNamedTheSame()
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fragments named the same without being referenced
|
* @see it('fragments named the same without being referenced')
|
||||||
*/
|
*/
|
||||||
public function testFragmentsNamedTheSameWithoutBeingReferenced()
|
public function testFragmentsNamedTheSameWithoutBeingReferenced()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Unique input field names
|
// Validate: Unique input field names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it input object with fields
|
* @see it('input object with fields')
|
||||||
*/
|
*/
|
||||||
public function testInputObjectWithFields()
|
public function testInputObjectWithFields()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it same input object within two args
|
* @see it('same input object within two args')
|
||||||
*/
|
*/
|
||||||
public function testSameInputObjectWithinTwoArgs()
|
public function testSameInputObjectWithinTwoArgs()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple input object fields
|
* @see it('multiple input object fields')
|
||||||
*/
|
*/
|
||||||
public function testMultipleInputObjectFields()
|
public function testMultipleInputObjectFields()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows for nested input objects with similar fields
|
* @see it('allows for nested input objects with similar fields')
|
||||||
*/
|
*/
|
||||||
public function testAllowsForNestedInputObjectsWithSimilarFields()
|
public function testAllowsForNestedInputObjectsWithSimilarFields()
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it duplicate input object fields
|
* @see it('duplicate input object fields')
|
||||||
*/
|
*/
|
||||||
public function testDuplicateInputObjectFields()
|
public function testDuplicateInputObjectFields()
|
||||||
{
|
{
|
||||||
@ -80,7 +80,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it many duplicate input object fields
|
* @see it('many duplicate input object fields')
|
||||||
*/
|
*/
|
||||||
public function testManyDuplicateInputObjectFields()
|
public function testManyDuplicateInputObjectFields()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Unique operation names
|
// Validate: Unique operation names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no operations
|
* @see it('no operations')
|
||||||
*/
|
*/
|
||||||
public function testNoOperations()
|
public function testNoOperations()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it one anon operation
|
* @see it('one anon operation')
|
||||||
*/
|
*/
|
||||||
public function testOneAnonOperation()
|
public function testOneAnonOperation()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it one named operation
|
* @see it('one named operation')
|
||||||
*/
|
*/
|
||||||
public function testOneNamedOperation()
|
public function testOneNamedOperation()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple operations
|
* @see it('multiple operations')
|
||||||
*/
|
*/
|
||||||
public function testMultipleOperations()
|
public function testMultipleOperations()
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple operations of different types
|
* @see it('multiple operations of different types')
|
||||||
*/
|
*/
|
||||||
public function testMultipleOperationsOfDifferentTypes()
|
public function testMultipleOperationsOfDifferentTypes()
|
||||||
{
|
{
|
||||||
@ -82,7 +82,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it fragment and operation named the same
|
* @see it('fragment and operation named the same')
|
||||||
*/
|
*/
|
||||||
public function testFragmentAndOperationNamedTheSame()
|
public function testFragmentAndOperationNamedTheSame()
|
||||||
{
|
{
|
||||||
@ -97,7 +97,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple operations of same name
|
* @see it('multiple operations of same name')
|
||||||
*/
|
*/
|
||||||
public function testMultipleOperationsOfSameName()
|
public function testMultipleOperationsOfSameName()
|
||||||
{
|
{
|
||||||
@ -114,7 +114,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple ops of same name of different types (mutation)
|
* @see it('multiple ops of same name of different types (mutation)')
|
||||||
*/
|
*/
|
||||||
public function testMultipleOpsOfSameNameOfDifferentTypes_Mutation()
|
public function testMultipleOpsOfSameNameOfDifferentTypes_Mutation()
|
||||||
{
|
{
|
||||||
@ -131,7 +131,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it multiple ops of same name of different types (subscription)
|
* @see it('multiple ops of same name of different types (subscription)')
|
||||||
*/
|
*/
|
||||||
public function testMultipleOpsOfSameNameOfDifferentTypes_Subscription()
|
public function testMultipleOpsOfSameNameOfDifferentTypes_Subscription()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class UniqueVariableNamesTest extends ValidatorTestCase
|
|||||||
// Validate: Unique variable names
|
// Validate: Unique variable names
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it unique variable names
|
* @see it('unique variable names')
|
||||||
*/
|
*/
|
||||||
public function testUniqueVariableNames()
|
public function testUniqueVariableNames()
|
||||||
{
|
{
|
||||||
@ -21,7 +21,7 @@ class UniqueVariableNamesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it duplicate variable names
|
* @see it('duplicate variable names')
|
||||||
*/
|
*/
|
||||||
public function testDuplicateVariableNames()
|
public function testDuplicateVariableNames()
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ class ValidationTest extends ValidatorTestCase
|
|||||||
// Validate: Supports full validation
|
// Validate: Supports full validation
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it validates queries
|
* @see it('validates queries')
|
||||||
*/
|
*/
|
||||||
public function testValidatesQueries()
|
public function testValidatesQueries()
|
||||||
{
|
{
|
||||||
@ -25,7 +25,7 @@ class ValidationTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it detects bad scalar parse
|
* @see it('detects bad scalar parse')
|
||||||
*/
|
*/
|
||||||
public function testDetectsBadScalarParse()
|
public function testDetectsBadScalarParse()
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Valid values
|
// Valid values
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good int value
|
* @see it('Good int value')
|
||||||
*/
|
*/
|
||||||
public function testGoodIntValue()
|
public function testGoodIntValue()
|
||||||
{
|
{
|
||||||
@ -59,7 +59,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good negative int value
|
* @see it('Good negative int value')
|
||||||
*/
|
*/
|
||||||
public function testGoodNegativeIntValue()
|
public function testGoodNegativeIntValue()
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good boolean value
|
* @see it('Good boolean value')
|
||||||
*/
|
*/
|
||||||
public function testGoodBooleanValue()
|
public function testGoodBooleanValue()
|
||||||
{
|
{
|
||||||
@ -87,7 +87,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good string value
|
* @see it('Good string value')
|
||||||
*/
|
*/
|
||||||
public function testGoodStringValue()
|
public function testGoodStringValue()
|
||||||
{
|
{
|
||||||
@ -101,7 +101,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good float value
|
* @see it('Good float value')
|
||||||
*/
|
*/
|
||||||
public function testGoodFloatValue()
|
public function testGoodFloatValue()
|
||||||
{
|
{
|
||||||
@ -126,7 +126,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int into Float
|
* @see it('Int into Float')
|
||||||
*/
|
*/
|
||||||
public function testIntIntoFloat()
|
public function testIntIntoFloat()
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int into ID
|
* @see it('Int into ID')
|
||||||
*/
|
*/
|
||||||
public function testIntIntoID()
|
public function testIntIntoID()
|
||||||
{
|
{
|
||||||
@ -154,7 +154,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String into ID
|
* @see it('String into ID')
|
||||||
*/
|
*/
|
||||||
public function testStringIntoID()
|
public function testStringIntoID()
|
||||||
{
|
{
|
||||||
@ -168,7 +168,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good enum value
|
* @see it('Good enum value')
|
||||||
*/
|
*/
|
||||||
public function testGoodEnumValue()
|
public function testGoodEnumValue()
|
||||||
{
|
{
|
||||||
@ -182,7 +182,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Enum with null value
|
* @see it('Enum with null value')
|
||||||
*/
|
*/
|
||||||
public function testEnumWithNullValue()
|
public function testEnumWithNullValue()
|
||||||
{
|
{
|
||||||
@ -196,7 +196,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it null into nullable type
|
* @see it('null into nullable type')
|
||||||
*/
|
*/
|
||||||
public function testNullIntoNullableType()
|
public function testNullIntoNullableType()
|
||||||
{
|
{
|
||||||
@ -220,7 +220,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid String values
|
// Invalid String values
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int into String
|
* @see it('Int into String')
|
||||||
*/
|
*/
|
||||||
public function testIntIntoString()
|
public function testIntIntoString()
|
||||||
{
|
{
|
||||||
@ -236,7 +236,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Float into String
|
* @see it('Float into String')
|
||||||
*/
|
*/
|
||||||
public function testFloatIntoString()
|
public function testFloatIntoString()
|
||||||
{
|
{
|
||||||
@ -252,7 +252,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean into String
|
* @see it('Boolean into String')
|
||||||
*/
|
*/
|
||||||
public function testBooleanIntoString()
|
public function testBooleanIntoString()
|
||||||
{
|
{
|
||||||
@ -268,7 +268,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unquoted String into String
|
* @see it('Unquoted String into String')
|
||||||
*/
|
*/
|
||||||
public function testUnquotedStringIntoString()
|
public function testUnquotedStringIntoString()
|
||||||
{
|
{
|
||||||
@ -286,7 +286,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid Int values
|
// Invalid Int values
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String into Int
|
* @see it('String into Int')
|
||||||
*/
|
*/
|
||||||
public function testStringIntoInt()
|
public function testStringIntoInt()
|
||||||
{
|
{
|
||||||
@ -302,7 +302,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Big Int into Int
|
* @see it('Big Int into Int')
|
||||||
*/
|
*/
|
||||||
public function testBigIntIntoInt()
|
public function testBigIntIntoInt()
|
||||||
{
|
{
|
||||||
@ -318,7 +318,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unquoted String into Int
|
* @see it('Unquoted String into Int')
|
||||||
*/
|
*/
|
||||||
public function testUnquotedStringIntoInt()
|
public function testUnquotedStringIntoInt()
|
||||||
{
|
{
|
||||||
@ -334,7 +334,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Simple Float into Int
|
* @see it('Simple Float into Int')
|
||||||
*/
|
*/
|
||||||
public function testSimpleFloatIntoInt()
|
public function testSimpleFloatIntoInt()
|
||||||
{
|
{
|
||||||
@ -350,7 +350,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Float into Int
|
* @see it('Float into Int')
|
||||||
*/
|
*/
|
||||||
public function testFloatIntoInt()
|
public function testFloatIntoInt()
|
||||||
{
|
{
|
||||||
@ -368,7 +368,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid Float values
|
// Invalid Float values
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String into Float
|
* @see it('String into Float')
|
||||||
*/
|
*/
|
||||||
public function testStringIntoFloat()
|
public function testStringIntoFloat()
|
||||||
{
|
{
|
||||||
@ -384,7 +384,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean into Float
|
* @see it('Boolean into Float')
|
||||||
*/
|
*/
|
||||||
public function testBooleanIntoFloat()
|
public function testBooleanIntoFloat()
|
||||||
{
|
{
|
||||||
@ -400,7 +400,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unquoted into Float
|
* @see it('Unquoted into Float')
|
||||||
*/
|
*/
|
||||||
public function testUnquotedIntoFloat()
|
public function testUnquotedIntoFloat()
|
||||||
{
|
{
|
||||||
@ -418,7 +418,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid Boolean value
|
// Invalid Boolean value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int into Boolean
|
* @see it('Int into Boolean')
|
||||||
*/
|
*/
|
||||||
public function testIntIntoBoolean()
|
public function testIntIntoBoolean()
|
||||||
{
|
{
|
||||||
@ -434,7 +434,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Float into Boolean
|
* @see it('Float into Boolean')
|
||||||
*/
|
*/
|
||||||
public function testFloatIntoBoolean()
|
public function testFloatIntoBoolean()
|
||||||
{
|
{
|
||||||
@ -450,7 +450,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String into Boolean
|
* @see it('String into Boolean')
|
||||||
*/
|
*/
|
||||||
public function testStringIntoBoolean()
|
public function testStringIntoBoolean()
|
||||||
{
|
{
|
||||||
@ -466,7 +466,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unquoted into Boolean
|
* @see it('Unquoted into Boolean')
|
||||||
*/
|
*/
|
||||||
public function testUnquotedIntoBoolean()
|
public function testUnquotedIntoBoolean()
|
||||||
{
|
{
|
||||||
@ -484,7 +484,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid ID value
|
// Invalid ID value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Float into ID
|
* @see it('Float into ID')
|
||||||
*/
|
*/
|
||||||
public function testFloatIntoID()
|
public function testFloatIntoID()
|
||||||
{
|
{
|
||||||
@ -500,7 +500,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean into ID
|
* @see it('Boolean into ID')
|
||||||
*/
|
*/
|
||||||
public function testBooleanIntoID()
|
public function testBooleanIntoID()
|
||||||
{
|
{
|
||||||
@ -516,7 +516,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unquoted into ID
|
* @see it('Unquoted into ID')
|
||||||
*/
|
*/
|
||||||
public function testUnquotedIntoID()
|
public function testUnquotedIntoID()
|
||||||
{
|
{
|
||||||
@ -534,7 +534,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid Enum value
|
// Invalid Enum value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int into Enum
|
* @see it('Int into Enum')
|
||||||
*/
|
*/
|
||||||
public function testIntIntoEnum()
|
public function testIntIntoEnum()
|
||||||
{
|
{
|
||||||
@ -550,7 +550,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Float into Enum
|
* @see it('Float into Enum')
|
||||||
*/
|
*/
|
||||||
public function testFloatIntoEnum()
|
public function testFloatIntoEnum()
|
||||||
{
|
{
|
||||||
@ -566,7 +566,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String into Enum
|
* @see it('String into Enum')
|
||||||
*/
|
*/
|
||||||
public function testStringIntoEnum()
|
public function testStringIntoEnum()
|
||||||
{
|
{
|
||||||
@ -588,7 +588,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean into Enum
|
* @see it('Boolean into Enum')
|
||||||
*/
|
*/
|
||||||
public function testBooleanIntoEnum()
|
public function testBooleanIntoEnum()
|
||||||
{
|
{
|
||||||
@ -604,7 +604,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Unknown Enum Value into Enum
|
* @see it('Unknown Enum Value into Enum')
|
||||||
*/
|
*/
|
||||||
public function testUnknownEnumValueIntoEnum()
|
public function testUnknownEnumValueIntoEnum()
|
||||||
{
|
{
|
||||||
@ -620,7 +620,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Different case Enum Value into Enum
|
* @see it('Different case Enum Value into Enum')
|
||||||
*/
|
*/
|
||||||
public function testDifferentCaseEnumValueIntoEnum()
|
public function testDifferentCaseEnumValueIntoEnum()
|
||||||
{
|
{
|
||||||
@ -644,7 +644,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Valid List value
|
// Valid List value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Good list value
|
* @see it('Good list value')
|
||||||
*/
|
*/
|
||||||
public function testGoodListValue()
|
public function testGoodListValue()
|
||||||
{
|
{
|
||||||
@ -658,7 +658,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Empty list value
|
* @see it('Empty list value')
|
||||||
*/
|
*/
|
||||||
public function testEmptyListValue()
|
public function testEmptyListValue()
|
||||||
{
|
{
|
||||||
@ -672,7 +672,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Null value
|
* @see it('Null value')
|
||||||
*/
|
*/
|
||||||
public function testNullValue()
|
public function testNullValue()
|
||||||
{
|
{
|
||||||
@ -686,7 +686,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Single value into List
|
* @see it('Single value into List')
|
||||||
*/
|
*/
|
||||||
public function testSingleValueIntoList()
|
public function testSingleValueIntoList()
|
||||||
{
|
{
|
||||||
@ -702,7 +702,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid List value
|
// Invalid List value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Incorrect item type
|
* @see it('Incorrect item type')
|
||||||
*/
|
*/
|
||||||
public function testIncorrectItemtype()
|
public function testIncorrectItemtype()
|
||||||
{
|
{
|
||||||
@ -718,7 +718,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Single value of incorrect type
|
* @see it('Single value of incorrect type')
|
||||||
*/
|
*/
|
||||||
public function testSingleValueOfIncorrectType()
|
public function testSingleValueOfIncorrectType()
|
||||||
{
|
{
|
||||||
@ -736,7 +736,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Valid non-nullable value
|
// Valid non-nullable value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Arg on optional arg
|
* @see it('Arg on optional arg')
|
||||||
*/
|
*/
|
||||||
public function testArgOnOptionalArg()
|
public function testArgOnOptionalArg()
|
||||||
{
|
{
|
||||||
@ -750,7 +750,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it No Arg on optional arg
|
* @see it('No Arg on optional arg')
|
||||||
*/
|
*/
|
||||||
public function testNoArgOnOptionalArg()
|
public function testNoArgOnOptionalArg()
|
||||||
{
|
{
|
||||||
@ -764,7 +764,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple args
|
* @see it('Multiple args')
|
||||||
*/
|
*/
|
||||||
public function testMultipleArgs()
|
public function testMultipleArgs()
|
||||||
{
|
{
|
||||||
@ -778,7 +778,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple args reverse order
|
* @see it('Multiple args reverse order')
|
||||||
*/
|
*/
|
||||||
public function testMultipleArgsReverseOrder()
|
public function testMultipleArgsReverseOrder()
|
||||||
{
|
{
|
||||||
@ -792,7 +792,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it No args on multiple optional
|
* @see it('No args on multiple optional')
|
||||||
*/
|
*/
|
||||||
public function testNoArgsOnMultipleOptional()
|
public function testNoArgsOnMultipleOptional()
|
||||||
{
|
{
|
||||||
@ -806,7 +806,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it One arg on multiple optional
|
* @see it('One arg on multiple optional')
|
||||||
*/
|
*/
|
||||||
public function testOneArgOnMultipleOptional()
|
public function testOneArgOnMultipleOptional()
|
||||||
{
|
{
|
||||||
@ -820,7 +820,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Second arg on multiple optional
|
* @see it('Second arg on multiple optional')
|
||||||
*/
|
*/
|
||||||
public function testSecondArgOnMultipleOptional()
|
public function testSecondArgOnMultipleOptional()
|
||||||
{
|
{
|
||||||
@ -834,7 +834,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple reqs on mixedList
|
* @see it('Multiple reqs on mixedList')
|
||||||
*/
|
*/
|
||||||
public function testMultipleReqsOnMixedList()
|
public function testMultipleReqsOnMixedList()
|
||||||
{
|
{
|
||||||
@ -848,7 +848,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Multiple reqs and one opt on mixedList
|
* @see it('Multiple reqs and one opt on mixedList')
|
||||||
*/
|
*/
|
||||||
public function testMultipleReqsAndOneOptOnMixedList()
|
public function testMultipleReqsAndOneOptOnMixedList()
|
||||||
{
|
{
|
||||||
@ -862,7 +862,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it All reqs and opts on mixedList
|
* @see it('All reqs and opts on mixedList')
|
||||||
*/
|
*/
|
||||||
public function testAllReqsAndOptsOnMixedList()
|
public function testAllReqsAndOptsOnMixedList()
|
||||||
{
|
{
|
||||||
@ -878,7 +878,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// Invalid non-nullable value
|
// Invalid non-nullable value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Incorrect value type
|
* @see it('Incorrect value type')
|
||||||
*/
|
*/
|
||||||
public function testIncorrectValueType()
|
public function testIncorrectValueType()
|
||||||
{
|
{
|
||||||
@ -895,7 +895,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Incorrect value and missing argument (ProvidedNonNullArguments)
|
* @see it('Incorrect value and missing argument (ProvidedNonNullArguments)')
|
||||||
*/
|
*/
|
||||||
public function testIncorrectValueAndMissingArgumentProvidedNonNullArguments()
|
public function testIncorrectValueAndMissingArgumentProvidedNonNullArguments()
|
||||||
{
|
{
|
||||||
@ -911,7 +911,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Null value
|
* @see it('Null value')
|
||||||
*/
|
*/
|
||||||
public function testNullValue2()
|
public function testNullValue2()
|
||||||
{
|
{
|
||||||
@ -930,7 +930,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// DESCRIBE: Valid input object value
|
// DESCRIBE: Valid input object value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Optional arg, despite required field in type
|
* @see it('Optional arg, despite required field in type')
|
||||||
*/
|
*/
|
||||||
public function testOptionalArgDespiteRequiredFieldInType()
|
public function testOptionalArgDespiteRequiredFieldInType()
|
||||||
{
|
{
|
||||||
@ -944,7 +944,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Partial object, only required
|
* @see it('Partial object, only required')
|
||||||
*/
|
*/
|
||||||
public function testPartialObjectOnlyRequired()
|
public function testPartialObjectOnlyRequired()
|
||||||
{
|
{
|
||||||
@ -958,7 +958,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Partial object, required field can be falsey
|
* @see it('Partial object, required field can be falsey')
|
||||||
*/
|
*/
|
||||||
public function testPartialObjectRequiredFieldCanBeFalsey()
|
public function testPartialObjectRequiredFieldCanBeFalsey()
|
||||||
{
|
{
|
||||||
@ -972,7 +972,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Partial object, including required
|
* @see it('Partial object, including required')
|
||||||
*/
|
*/
|
||||||
public function testPartialObjectIncludingRequired()
|
public function testPartialObjectIncludingRequired()
|
||||||
{
|
{
|
||||||
@ -986,7 +986,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Full object
|
* @see it('Full object')
|
||||||
*/
|
*/
|
||||||
public function testFullObject()
|
public function testFullObject()
|
||||||
{
|
{
|
||||||
@ -1006,7 +1006,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Full object with fields in different order
|
* @see it('Full object with fields in different order')
|
||||||
*/
|
*/
|
||||||
public function testFullObjectWithFieldsInDifferentOrder()
|
public function testFullObjectWithFieldsInDifferentOrder()
|
||||||
{
|
{
|
||||||
@ -1028,7 +1028,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// DESCRIBE: Invalid input object value
|
// DESCRIBE: Invalid input object value
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Partial object, missing required
|
* @see it('Partial object, missing required')
|
||||||
*/
|
*/
|
||||||
public function testPartialObjectMissingRequired()
|
public function testPartialObjectMissingRequired()
|
||||||
{
|
{
|
||||||
@ -1044,7 +1044,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Partial object, invalid field type
|
* @see it('Partial object, invalid field type')
|
||||||
*/
|
*/
|
||||||
public function testPartialObjectInvalidFieldType()
|
public function testPartialObjectInvalidFieldType()
|
||||||
{
|
{
|
||||||
@ -1063,7 +1063,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Partial object, unknown field arg
|
* @see it('Partial object, unknown field arg')
|
||||||
*
|
*
|
||||||
* The sorting of equal elements has changed so that the test fails on php < 7
|
* The sorting of equal elements has changed so that the test fails on php < 7
|
||||||
* @requires PHP 7.0
|
* @requires PHP 7.0
|
||||||
@ -1093,7 +1093,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it reports original error for custom scalar which throws
|
* @see it('reports original error for custom scalar which throws')
|
||||||
*/
|
*/
|
||||||
public function testReportsOriginalErrorForCustomScalarWhichThrows()
|
public function testReportsOriginalErrorForCustomScalarWhichThrows()
|
||||||
{
|
{
|
||||||
@ -1118,7 +1118,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it allows custom scalar to accept complex literals
|
* @see it('allows custom scalar to accept complex literals')
|
||||||
*/
|
*/
|
||||||
public function testAllowsCustomScalarToAcceptComplexLiterals()
|
public function testAllowsCustomScalarToAcceptComplexLiterals()
|
||||||
{
|
{
|
||||||
@ -1135,7 +1135,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// DESCRIBE: Directive arguments
|
// DESCRIBE: Directive arguments
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with directives of valid types
|
* @see it('with directives of valid types')
|
||||||
*/
|
*/
|
||||||
public function testWithDirectivesOfValidTypes()
|
public function testWithDirectivesOfValidTypes()
|
||||||
{
|
{
|
||||||
@ -1152,7 +1152,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it with directive with incorrect types
|
* @see it('with directive with incorrect types')
|
||||||
*/
|
*/
|
||||||
public function testWithDirectiveWithIncorrectTypes()
|
public function testWithDirectiveWithIncorrectTypes()
|
||||||
{
|
{
|
||||||
@ -1171,7 +1171,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
// DESCRIBE: Variable default values
|
// DESCRIBE: Variable default values
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with valid default values
|
* @see it('variables with valid default values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithValidDefaultValues()
|
public function testVariablesWithValidDefaultValues()
|
||||||
{
|
{
|
||||||
@ -1187,7 +1187,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with valid default null values
|
* @see it('variables with valid default null values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithValidDefaultNullValues()
|
public function testVariablesWithValidDefaultNullValues()
|
||||||
{
|
{
|
||||||
@ -1203,7 +1203,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with invalid default null values
|
* @see it('variables with invalid default null values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithInvalidDefaultNullValues()
|
public function testVariablesWithInvalidDefaultNullValues()
|
||||||
{
|
{
|
||||||
@ -1223,7 +1223,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with invalid default values
|
* @see it('variables with invalid default values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithInvalidDefaultValues()
|
public function testVariablesWithInvalidDefaultValues()
|
||||||
{
|
{
|
||||||
@ -1243,7 +1243,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with complex invalid default values
|
* @see it('variables with complex invalid default values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithComplexInvalidDefaultValues()
|
public function testVariablesWithComplexInvalidDefaultValues()
|
||||||
{
|
{
|
||||||
@ -1260,7 +1260,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it complex variables missing required field
|
* @see it('complex variables missing required field')
|
||||||
*/
|
*/
|
||||||
public function testComplexVariablesMissingRequiredField()
|
public function testComplexVariablesMissingRequiredField()
|
||||||
{
|
{
|
||||||
@ -1274,7 +1274,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it list variables with invalid item
|
* @see it('list variables with invalid item')
|
||||||
*/
|
*/
|
||||||
public function testListVariablesWithInvalidItem()
|
public function testListVariablesWithInvalidItem()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class VariablesAreInputTypesTest extends ValidatorTestCase
|
|||||||
// Validate: Variables are input types
|
// Validate: Variables are input types
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it input types are valid
|
* @see it('input types are valid')
|
||||||
*/
|
*/
|
||||||
public function testInputTypesAreValid()
|
public function testInputTypesAreValid()
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ class VariablesAreInputTypesTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it output types are invalid
|
* @see it('output types are invalid')
|
||||||
*/
|
*/
|
||||||
public function testOutputTypesAreInvalid()
|
public function testOutputTypesAreInvalid()
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
|||||||
// DESCRIBE: Validate: Variable default value is allowed
|
// DESCRIBE: Validate: Variable default value is allowed
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with no default values
|
* @see it('variables with no default values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithNoDefaultValues()
|
public function testVariablesWithNoDefaultValues()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it required variables without default values
|
* @see it('required variables without default values')
|
||||||
*/
|
*/
|
||||||
public function testRequiredVariablesWithoutDefaultValues()
|
public function testRequiredVariablesWithoutDefaultValues()
|
||||||
{
|
{
|
||||||
@ -46,7 +46,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with valid default values
|
* @see it('variables with valid default values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithValidDefaultValues()
|
public function testVariablesWithValidDefaultValues()
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with valid default null values
|
* @see it('variables with valid default null values')
|
||||||
*/
|
*/
|
||||||
public function testVariablesWithValidDefaultNullValues()
|
public function testVariablesWithValidDefaultNullValues()
|
||||||
{
|
{
|
||||||
@ -78,7 +78,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it no required variables with default values
|
* @see it('no required variables with default values')
|
||||||
*/
|
*/
|
||||||
public function testNoRequiredVariablesWithDefaultValues()
|
public function testNoRequiredVariablesWithDefaultValues()
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it variables with invalid default null values
|
* @see it('variables with invalid default null values')
|
||||||
*/
|
*/
|
||||||
public function testNullIntoNullableType()
|
public function testNullIntoNullableType()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
// Validate: Variables are in allowed positions
|
// Validate: Variables are in allowed positions
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean => Boolean
|
* @see it('Boolean => Boolean')
|
||||||
*/
|
*/
|
||||||
public function testBooleanXBoolean()
|
public function testBooleanXBoolean()
|
||||||
{
|
{
|
||||||
@ -26,7 +26,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean => Boolean within fragment
|
* @see it('Boolean => Boolean within fragment')
|
||||||
*/
|
*/
|
||||||
public function testBooleanXBooleanWithinFragment()
|
public function testBooleanXBooleanWithinFragment()
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean! => Boolean
|
* @see it('Boolean! => Boolean')
|
||||||
*/
|
*/
|
||||||
public function testBooleanNonNullXBoolean()
|
public function testBooleanNonNullXBoolean()
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean! => Boolean within fragment
|
* @see it('Boolean! => Boolean within fragment')
|
||||||
*/
|
*/
|
||||||
public function testBooleanNonNullXBooleanWithinFragment()
|
public function testBooleanNonNullXBooleanWithinFragment()
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int => Int! with default
|
* @see it('Int => Int! with default')
|
||||||
*/
|
*/
|
||||||
public function testIntXIntNonNullWithDefault()
|
public function testIntXIntNonNullWithDefault()
|
||||||
{
|
{
|
||||||
@ -109,7 +109,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it [String] => [String]
|
* @see it('[String] => [String]')
|
||||||
*/
|
*/
|
||||||
public function testListOfStringXListOfString()
|
public function testListOfStringXListOfString()
|
||||||
{
|
{
|
||||||
@ -124,7 +124,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it [String!] => [String]
|
* @see it('[String!] => [String]')
|
||||||
*/
|
*/
|
||||||
public function testListOfStringNonNullXListOfString()
|
public function testListOfStringNonNullXListOfString()
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String => [String] in item position
|
* @see it('String => [String] in item position')
|
||||||
*/
|
*/
|
||||||
public function testStringXListOfStringInItemPosition()
|
public function testStringXListOfStringInItemPosition()
|
||||||
{
|
{
|
||||||
@ -154,7 +154,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String! => [String] in item position
|
* @see it('String! => [String] in item position')
|
||||||
*/
|
*/
|
||||||
public function testStringNonNullXListOfStringInItemPosition()
|
public function testStringNonNullXListOfStringInItemPosition()
|
||||||
{
|
{
|
||||||
@ -169,7 +169,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ComplexInput => ComplexInput
|
* @see it('ComplexInput => ComplexInput')
|
||||||
*/
|
*/
|
||||||
public function testComplexInputXComplexInput()
|
public function testComplexInputXComplexInput()
|
||||||
{
|
{
|
||||||
@ -184,7 +184,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it ComplexInput => ComplexInput in field position
|
* @see it('ComplexInput => ComplexInput in field position')
|
||||||
*/
|
*/
|
||||||
public function testComplexInputXComplexInputInFieldPosition()
|
public function testComplexInputXComplexInputInFieldPosition()
|
||||||
{
|
{
|
||||||
@ -199,7 +199,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean! => Boolean! in directive
|
* @see it('Boolean! => Boolean! in directive')
|
||||||
*/
|
*/
|
||||||
public function testBooleanNonNullXBooleanNonNullInDirective()
|
public function testBooleanNonNullXBooleanNonNullInDirective()
|
||||||
{
|
{
|
||||||
@ -212,7 +212,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean => Boolean! in directive with default
|
* @see it('Boolean => Boolean! in directive with default')
|
||||||
*/
|
*/
|
||||||
public function testBooleanXBooleanNonNullInDirectiveWithDefault()
|
public function testBooleanXBooleanNonNullInDirectiveWithDefault()
|
||||||
{
|
{
|
||||||
@ -225,7 +225,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int => Int!
|
* @see it('Int => Int!')
|
||||||
*/
|
*/
|
||||||
public function testIntXIntNonNull()
|
public function testIntXIntNonNull()
|
||||||
{
|
{
|
||||||
@ -244,7 +244,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int => Int! within fragment
|
* @see it('Int => Int! within fragment')
|
||||||
*/
|
*/
|
||||||
public function testIntXIntNonNullWithinFragment()
|
public function testIntXIntNonNullWithinFragment()
|
||||||
{
|
{
|
||||||
@ -267,7 +267,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Int => Int! within nested fragment
|
* @see it('Int => Int! within nested fragment')
|
||||||
*/
|
*/
|
||||||
public function testIntXIntNonNullWithinNestedFragment()
|
public function testIntXIntNonNullWithinNestedFragment()
|
||||||
{
|
{
|
||||||
@ -296,7 +296,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String over Boolean
|
* @see it('String over Boolean')
|
||||||
*/
|
*/
|
||||||
public function testStringOverBoolean()
|
public function testStringOverBoolean()
|
||||||
{
|
{
|
||||||
@ -315,7 +315,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String => [String]
|
* @see it('String => [String]')
|
||||||
*/
|
*/
|
||||||
public function testStringXListOfString()
|
public function testStringXListOfString()
|
||||||
{
|
{
|
||||||
@ -334,7 +334,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it Boolean => Boolean! in directive
|
* @see it('Boolean => Boolean! in directive')
|
||||||
*/
|
*/
|
||||||
public function testBooleanXBooleanNonNullInDirective()
|
public function testBooleanXBooleanNonNullInDirective()
|
||||||
{
|
{
|
||||||
@ -351,7 +351,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it String => Boolean! in directive
|
* @see it('String => Boolean! in directive')
|
||||||
*/
|
*/
|
||||||
public function testStringXBooleanNonNullInDirective()
|
public function testStringXBooleanNonNullInDirective()
|
||||||
{
|
{
|
||||||
@ -369,7 +369,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @it [String] => [String!]
|
* @see it('[String] => [String!]')
|
||||||
*/
|
*/
|
||||||
public function testStringArrayXStringNonNullArray()
|
public function testStringArrayXStringNonNullArray()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user