mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
Replace misleading @it by @see annotation
This commit is contained in:
parent
cf4cefc2bc
commit
a30b3104a0
@ -19,7 +19,7 @@ class AbstractPromiseTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -103,7 +103,7 @@ class AbstractPromiseTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it isTypeOf can be rejected
|
||||
* @see it('isTypeOf can be rejected')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -567,7 +567,7 @@ class AbstractPromiseTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it resolveType can be caught
|
||||
* @see it('resolveType can be caught')
|
||||
*/
|
||||
public function testResolveTypeCanBeCaught()
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ class AbstractTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ class DirectivesTest extends TestCase
|
||||
|
||||
/**
|
||||
* @describe works without directives
|
||||
* @it basic query works
|
||||
* @see it('basic query works')
|
||||
*/
|
||||
public function testWorksWithoutDirectives()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ class ExecutorSchemaTest extends TestCase
|
||||
// Execute: Handles execution with a complex schema
|
||||
|
||||
/**
|
||||
* @it executes using a schema
|
||||
* @see it('executes using a schema')
|
||||
*/
|
||||
public function testExecutesUsingASchema()
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ class ExecutorTest extends TestCase
|
||||
// Execute: Handles basic execution tasks
|
||||
|
||||
/**
|
||||
* @it executes arbitrary code
|
||||
* @see it('executes arbitrary code')
|
||||
*/
|
||||
public function testExecutesArbitraryCode()
|
||||
{
|
||||
@ -164,7 +164,7 @@ class ExecutorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it merges parallel fragments
|
||||
* @see it('merges parallel fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -277,7 +277,7 @@ class ExecutorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it threads root value context correctly
|
||||
* @see it('threads root value context correctly')
|
||||
*/
|
||||
public function testThreadsContextCorrectly()
|
||||
{
|
||||
@ -311,7 +311,7 @@ class ExecutorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it correctly threads arguments
|
||||
* @see it('correctly threads arguments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -821,7 +821,7 @@ class ExecutorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Avoids recursion
|
||||
* @see it('Avoids recursion')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -997,7 +997,7 @@ class ExecutorTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it uses a custom field resolver
|
||||
* @see it('uses a custom field resolver')
|
||||
*/
|
||||
public function testUsesACustomFieldResolver()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ class MutationsTest extends TestCase
|
||||
// Execute: Handles mutation execution ordering
|
||||
|
||||
/**
|
||||
* @it evaluates mutations serially
|
||||
* @see it('evaluates mutations serially')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ class NonNullTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ class ResolveTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it default function accesses properties
|
||||
* @see it('default function accesses properties')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -80,7 +80,7 @@ class ResolveTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it uses provided resolve function
|
||||
* @see it('uses provided resolve function')
|
||||
*/
|
||||
public function testUsesProvidedResolveFunction()
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ class SyncTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -124,7 +124,7 @@ class SyncTest extends TestCase
|
||||
// Describe: graphqlSync
|
||||
|
||||
/**
|
||||
* @it does not return a Promise for syntax errors
|
||||
* @see it('does not return a Promise for syntax errors')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ class UnionInterfaceTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -160,7 +160,7 @@ class UnionInterfaceTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it executes using union types
|
||||
* @see it('executes using union types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -229,7 +229,7 @@ class UnionInterfaceTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it executes using interface types
|
||||
* @see it('executes using interface types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -352,7 +352,7 @@ class UnionInterfaceTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it gets execution info in resolver
|
||||
* @see it('gets execution info in resolver')
|
||||
*/
|
||||
public function testGetsExecutionInfoInResolver()
|
||||
{
|
||||
|
@ -247,7 +247,7 @@ class VariablesTest extends TestCase
|
||||
// Describe: Handles nullable scalars
|
||||
|
||||
/**
|
||||
* @it allows nullable inputs to be omitted
|
||||
* @see it('allows nullable inputs to be omitted')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -340,7 +340,7 @@ class VariablesTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -524,7 +524,7 @@ class VariablesTest extends TestCase
|
||||
// Describe: Handles lists and nullability
|
||||
|
||||
/**
|
||||
* @it allows lists to be null
|
||||
* @see it('allows lists to be null')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -555,7 +555,7 @@ class VariablesTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it allows lists to contain null
|
||||
* @see it('allows lists to contain null')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -799,7 +799,7 @@ class VariablesTest extends TestCase
|
||||
|
||||
// Describe: Execute: Uses argument default values
|
||||
/**
|
||||
* @it when no argument provided
|
||||
* @see it('when no argument provided')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ use PHPUnit\Framework\TestCase;
|
||||
class LexerTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @it disallows uncommon control characters
|
||||
* @see it('disallows uncommon control characters')
|
||||
*/
|
||||
public function testDissallowsUncommonControlCharacters()
|
||||
{
|
||||
@ -24,7 +24,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it accepts BOM header
|
||||
* @see it('accepts BOM header')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -56,7 +56,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it skips whitespace and comments
|
||||
* @see it('skips whitespace and comments')
|
||||
*/
|
||||
public function testSkipsWhitespacesAndComments()
|
||||
{
|
||||
@ -99,7 +99,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it errors respect whitespace
|
||||
* @see it('errors respect whitespace')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -177,7 +177,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it lexes strings
|
||||
* @see it('lexes strings')
|
||||
*/
|
||||
public function testLexesStrings()
|
||||
{
|
||||
@ -241,7 +241,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it lexes block strings
|
||||
* @see it('lexes block strings')
|
||||
*/
|
||||
public function testLexesBlockString()
|
||||
{
|
||||
@ -336,7 +336,7 @@ class LexerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider reportsUsefulStringErrors
|
||||
* @it lex reports useful string errors
|
||||
* @see it('lex reports useful string errors')
|
||||
*/
|
||||
public function testLexReportsUsefulStringErrors($str, $expectedMessage, $location)
|
||||
{
|
||||
@ -354,7 +354,7 @@ class LexerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider reportsUsefulBlockStringErrors
|
||||
* @it lex reports useful block string errors
|
||||
* @see it('lex reports useful block string errors')
|
||||
*/
|
||||
public function testReportsUsefulBlockStringErrors($str, $expectedMessage, $location)
|
||||
{
|
||||
@ -362,7 +362,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it lexes numbers
|
||||
* @see it('lexes numbers')
|
||||
*/
|
||||
public function testLexesNumbers()
|
||||
{
|
||||
@ -449,7 +449,7 @@ class LexerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider reportsUsefulNumberErrors
|
||||
* @it lex reports useful number errors
|
||||
* @see it('lex reports useful number errors')
|
||||
*/
|
||||
public function testReportsUsefulNumberErrors($str, $expectedMessage, $location)
|
||||
{
|
||||
@ -457,7 +457,7 @@ class LexerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it lexes punctuation
|
||||
* @see it('lexes punctuation')
|
||||
*/
|
||||
public function testLexesPunctuation()
|
||||
{
|
||||
@ -530,7 +530,7 @@ class LexerTest extends TestCase
|
||||
|
||||
/**
|
||||
* @dataProvider reportsUsefulUnknownCharErrors
|
||||
* @it lex reports useful unknown character error
|
||||
* @see it('lex reports useful unknown character error')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ fragment MissingOn Type
|
||||
|
||||
/**
|
||||
* @dataProvider parseProvidesUsefulErrors
|
||||
* @it parse provides useful errors
|
||||
* @see it('parse provides useful errors')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -93,7 +93,7 @@ fragment MissingOn Type
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses variable inline values
|
||||
* @see it('parses variable inline values')
|
||||
*/
|
||||
public function testParsesVariableInlineValues()
|
||||
{
|
||||
@ -103,7 +103,7 @@ fragment MissingOn Type
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses constant default values
|
||||
* @see it('parses constant default values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -139,7 +139,7 @@ fragment MissingOn Type
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses multi-byte characters
|
||||
* @see it('parses multi-byte characters')
|
||||
*/
|
||||
public function testParsesMultiByteCharacters()
|
||||
{
|
||||
@ -174,7 +174,7 @@ HEREDOC;
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses kitchen sink
|
||||
* @see it('parses kitchen sink')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -232,7 +232,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses anonymous subscription operations
|
||||
* @see it('parses anonymous subscription operations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -260,7 +260,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses named subscription operations
|
||||
* @see it('parses named subscription operations')
|
||||
*/
|
||||
public function testParsesNamedSubscriptionOperations()
|
||||
{
|
||||
@ -273,7 +273,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it creates ast
|
||||
* @see it('creates ast')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -486,7 +486,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it contains references to source
|
||||
* @see it('contains references to source')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -509,7 +509,7 @@ fragment $fragmentName on Type {
|
||||
// Describe: parseValue
|
||||
|
||||
/**
|
||||
* @it parses null value
|
||||
* @see it('parses null value')
|
||||
*/
|
||||
public function testParsesNullValues()
|
||||
{
|
||||
@ -520,7 +520,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses list values
|
||||
* @see it('parses list values')
|
||||
*/
|
||||
public function testParsesListValues()
|
||||
{
|
||||
@ -546,7 +546,7 @@ fragment $fragmentName on Type {
|
||||
// Describe: parseType
|
||||
|
||||
/**
|
||||
* @it parses well known types
|
||||
* @see it('parses well known types')
|
||||
*/
|
||||
public function testParsesWellKnownTypes()
|
||||
{
|
||||
@ -562,7 +562,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses custom types
|
||||
* @see it('parses custom types')
|
||||
*/
|
||||
public function testParsesCustomTypes()
|
||||
{
|
||||
@ -578,7 +578,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses list types
|
||||
* @see it('parses list types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -618,7 +618,7 @@ fragment $fragmentName on Type {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses nested types
|
||||
* @see it('parses nested types')
|
||||
*/
|
||||
public function testParsesNestedTypes()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
|
||||
class PrinterTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @it does not alter ast
|
||||
* @see it('does not alter ast')
|
||||
*/
|
||||
public function testDoesntAlterAST()
|
||||
{
|
||||
@ -32,7 +32,7 @@ class PrinterTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it prints minimal ast
|
||||
* @see it('prints minimal ast')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -156,7 +156,7 @@ END;
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Experimental: correctly prints fragment defined variables
|
||||
* @see it('Experimental: correctly prints fragment defined variables')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -197,7 +197,7 @@ END;
|
||||
}
|
||||
|
||||
/**
|
||||
* @it prints kitchen sink
|
||||
* @see it('prints kitchen sink')
|
||||
*/
|
||||
public function testPrintsKitchenSink()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ class SchemaParserTest extends TestCase
|
||||
// Describe: Schema Parser
|
||||
|
||||
/**
|
||||
* @it Simple type
|
||||
* @see it('Simple type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -90,7 +90,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses type with description multi-linestring
|
||||
* @see it('parses type with description multi-linestring')
|
||||
*/
|
||||
public function testParsesTypeWithDescriptionMultiLineString()
|
||||
{
|
||||
@ -135,7 +135,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple extension
|
||||
* @see it('Simple extension')
|
||||
*/
|
||||
public function testSimpleExtension()
|
||||
{
|
||||
@ -172,7 +172,7 @@ extend type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Extension without fields
|
||||
* @see it('Extension without fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -237,7 +237,7 @@ extend type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Extension without anything throws
|
||||
* @see it('Extension without anything throws')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -266,7 +266,7 @@ extend type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Extension do not include descriptions
|
||||
* @see it('Extension do not include descriptions')
|
||||
*/
|
||||
public function testExtensionDoNotIncludeDescriptions2()
|
||||
{
|
||||
@ -283,7 +283,7 @@ extend type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple non-null type
|
||||
* @see it('Simple non-null type')
|
||||
*/
|
||||
public function testSimpleNonNullType()
|
||||
{
|
||||
@ -326,7 +326,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple type inheriting interface
|
||||
* @see it('Simple type inheriting interface')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -434,7 +434,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Single value enum
|
||||
* @see it('Single value enum')
|
||||
*/
|
||||
public function testSingleValueEnum()
|
||||
{
|
||||
@ -461,7 +461,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Double value enum
|
||||
* @see it('Double value enum')
|
||||
*/
|
||||
public function testDoubleValueEnum()
|
||||
{
|
||||
@ -491,7 +491,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple interface
|
||||
* @see it('Simple interface')
|
||||
*/
|
||||
public function testSimpleInterface()
|
||||
{
|
||||
@ -526,7 +526,7 @@ interface Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple field with arg
|
||||
* @see it('Simple field with arg')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -615,7 +615,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple field with list arg
|
||||
* @see it('Simple field with list arg')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -711,7 +711,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple union
|
||||
* @see it('Simple union')
|
||||
*/
|
||||
public function testSimpleUnion()
|
||||
{
|
||||
@ -737,7 +737,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Union with two types
|
||||
* @see it('Union with two types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -794,7 +794,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Union fails with no types
|
||||
* @see it('Union fails with no types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -818,7 +818,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Union fails with double pipe
|
||||
* @see it('Union fails with double pipe')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -842,7 +842,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Scalar
|
||||
* @see it('Scalar')
|
||||
*/
|
||||
public function testScalar()
|
||||
{
|
||||
@ -866,7 +866,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple input object
|
||||
* @see it('Simple input object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -918,7 +918,7 @@ input Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Directive with incorrect locations
|
||||
* @see it('Directive with incorrect locations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -962,7 +962,7 @@ input Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Option: allowLegacySDLImplementsInterfaces
|
||||
* @see it('Option: allowLegacySDLImplementsInterfaces')
|
||||
*/
|
||||
public function testDefaultSDLImplementsInterfaces()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ use Throwable;
|
||||
class SchemaPrinterTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @it prints minimal ast
|
||||
* @see it('prints minimal ast')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -35,7 +35,7 @@ class SchemaPrinterTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it does not alter ast
|
||||
* @see it('does not alter ast')
|
||||
*/
|
||||
public function testDoesNotAlterAst()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class StarWarsIntrospectionTest extends TestCase
|
||||
// Basic Introspection
|
||||
|
||||
/**
|
||||
* @it Allows querying the schema for types
|
||||
* @see it('Allows querying the schema for types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ class StarWarsQueryTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -69,7 +69,7 @@ class StarWarsQueryTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -130,7 +130,7 @@ class StarWarsQueryTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -221,7 +221,7 @@ class StarWarsQueryTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -269,7 +269,7 @@ class StarWarsQueryTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ class StarWarsValidationTest extends TestCase
|
||||
// Basic Queries
|
||||
|
||||
/**
|
||||
* @it Validates a complex but valid query
|
||||
* @see it('Validates a complex but valid query')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -54,7 +54,7 @@ class StarWarsValidationTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Requires fields on objects
|
||||
* @see it('Requires fields on objects')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -87,7 +87,7 @@ class StarWarsValidationTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Disallows object fields on interfaces
|
||||
* @see it('Disallows object fields on interfaces')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -170,7 +170,7 @@ class DefinitionTest extends TestCase
|
||||
// Type System: Example
|
||||
|
||||
/**
|
||||
* @it defines a query only schema
|
||||
* @see it('defines a query only schema')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -233,7 +233,7 @@ class DefinitionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it defines a subscription schema
|
||||
* @see it('defines a subscription schema')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -434,7 +434,7 @@ class DefinitionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it stringifies simple types
|
||||
* @see it('stringifies simple types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -473,7 +473,7 @@ class DefinitionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it identifies input types
|
||||
* @see it('identifies input types')
|
||||
*/
|
||||
public function testIdentifiesInputTypes()
|
||||
{
|
||||
@ -492,7 +492,7 @@ class DefinitionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it identifies output types
|
||||
* @see it('identifies output types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -744,7 +744,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -817,7 +817,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -840,7 +840,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -864,7 +864,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1003,7 +1003,7 @@ class DefinitionTest extends TestCase
|
||||
return $schema;
|
||||
}
|
||||
/**
|
||||
* @it accepts an Interface type defining resolveType
|
||||
* @see it('accepts an Interface type defining resolveType')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1159,7 +1159,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1295,7 +1295,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1330,7 +1330,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1396,7 +1396,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1466,7 +1466,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1514,7 +1514,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1661,7 +1661,7 @@ class DefinitionTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -180,7 +180,7 @@ class EnumTypeTest extends TestCase
|
||||
// Describe: Type System: Enum Values
|
||||
|
||||
/**
|
||||
* @it accepts enum literals as input
|
||||
* @see it('accepts enum literals as input')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -213,7 +213,7 @@ class EnumTypeTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it does not accept string literals
|
||||
* @see it('does not accept string literals')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -400,7 +400,7 @@ class EnumTypeTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it enum inputs may be nullable
|
||||
* @see it('enum inputs may be nullable')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -471,7 +471,7 @@ class EnumTypeTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it can be introspected without error
|
||||
* @see it('can be introspected without error')
|
||||
*/
|
||||
public function testCanBeIntrospectedWithoutError()
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ class IntrospectionTest extends TestCase
|
||||
// Describe: Introspection
|
||||
|
||||
/**
|
||||
* @it executes an introspection query
|
||||
* @see it('executes an introspection query')
|
||||
*/
|
||||
function testExecutesAnIntrospectionQuery()
|
||||
{
|
||||
@ -1070,7 +1070,7 @@ class IntrospectionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it introspects on input object
|
||||
* @see it('introspects on input object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1202,7 +1202,7 @@ class IntrospectionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it identifies deprecated fields
|
||||
* @see it('identifies deprecated fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1322,7 +1322,7 @@ class IntrospectionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it identifies deprecated enum values
|
||||
* @see it('identifies deprecated enum values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1541,7 +1541,7 @@ class IntrospectionTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it exposes descriptions on enums
|
||||
* @see it('exposes descriptions on enums')
|
||||
*/
|
||||
public function testExposesDescriptionsOnEnums()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class ScalarSerializationTest extends TestCase
|
||||
// Type System: Scalar coercion
|
||||
|
||||
/**
|
||||
* @it serializes output int
|
||||
* @see it('serializes output int')
|
||||
*/
|
||||
public function testSerializesOutputInt()
|
||||
{
|
||||
@ -116,7 +116,7 @@ class ScalarSerializationTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it serializes output float
|
||||
* @see it('serializes output float')
|
||||
*/
|
||||
public function testSerializesOutputFloat()
|
||||
{
|
||||
@ -151,7 +151,7 @@ class ScalarSerializationTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it serializes output strings
|
||||
* @see it('serializes output strings')
|
||||
*/
|
||||
public function testSerializesOutputStrings()
|
||||
{
|
||||
@ -183,7 +183,7 @@ class ScalarSerializationTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it serializes output boolean
|
||||
* @see it('serializes output boolean')
|
||||
*/
|
||||
public function testSerializesOutputBoolean()
|
||||
{
|
||||
|
@ -91,7 +91,7 @@ class SchemaTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -109,7 +109,7 @@ class SchemaTest extends TestCase
|
||||
// Type Map
|
||||
|
||||
/**
|
||||
* @it includes input types only used in directives
|
||||
* @see it('includes input types only used in directives')
|
||||
*/
|
||||
public function testIncludesInputTypesOnlyUsedInDirectives()
|
||||
{
|
||||
|
@ -169,7 +169,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -447,7 +447,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -550,7 +550,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -595,7 +595,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -733,7 +733,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -807,7 +807,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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
|
||||
*/
|
||||
public function testRejectsAnEnumTypeWithIncorrectlyNamedValues($name, $expectedMessage)
|
||||
@ -907,7 +907,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -975,7 +975,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1084,7 +1084,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1155,7 +1155,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1221,7 +1221,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1291,7 +1291,7 @@ class ValidationTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ class AssertValidNameTest extends TestCase
|
||||
// Describe: assertValidName()
|
||||
|
||||
/**
|
||||
* @it throws for use of leading double underscores
|
||||
* @see it('throws for use of leading double underscores')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ class AstFromValueTest extends TestCase
|
||||
// Describe: astFromValue
|
||||
|
||||
/**
|
||||
* @it converts boolean values to ASTs
|
||||
* @see it('converts boolean values to ASTs')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -153,7 +153,7 @@ class AstFromValueTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it converts list singletons
|
||||
* @see it('converts list singletons')
|
||||
*/
|
||||
public function testConvertsListSingletons()
|
||||
{
|
||||
@ -161,7 +161,7 @@ class AstFromValueTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it converts input objects
|
||||
* @see it('converts input objects')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ class AstFromValueUntypedTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses simple values
|
||||
* @see it('parses simple values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -41,7 +41,7 @@ class AstFromValueUntypedTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it parses input objects
|
||||
* @see it('parses input objects')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ class BreakingChangesFinderTest extends TestCase
|
||||
//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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -978,7 +978,7 @@ class BreakingChangesFinderTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it should detect all breaking changes
|
||||
* @see it('should detect all breaking changes')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1426,7 +1426,7 @@ class BreakingChangesFinderTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1684,7 +1684,7 @@ class BreakingChangesFinderTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it should find all dangerous changes
|
||||
* @see it('should find all dangerous changes')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -67,7 +67,7 @@ class BuildSchemaTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple Type
|
||||
* @see it('Simple Type')
|
||||
*/
|
||||
public function testSimpleType()
|
||||
{
|
||||
@ -85,7 +85,7 @@ type HelloScalars {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it With directives
|
||||
* @see it('With directives')
|
||||
*/
|
||||
public function testWithDirectives()
|
||||
{
|
||||
@ -101,7 +101,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Supports descriptions
|
||||
* @see it('Supports descriptions')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -164,7 +164,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Maintains @skip & @include
|
||||
* @see it('Maintains @skip & @include')
|
||||
*/
|
||||
public function testMaintainsSkipAndInclude()
|
||||
{
|
||||
@ -181,7 +181,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Overriding directives excludes specified
|
||||
* @see it('Overriding directives excludes specified')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -221,7 +221,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Type modifiers
|
||||
* @see it('Type modifiers')
|
||||
*/
|
||||
public function testTypeModifiers()
|
||||
{
|
||||
@ -239,7 +239,7 @@ type HelloScalars {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Recursive type
|
||||
* @see it('Recursive type')
|
||||
*/
|
||||
public function testRecursiveType()
|
||||
{
|
||||
@ -254,7 +254,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Two types circular
|
||||
* @see it('Two types circular')
|
||||
*/
|
||||
public function testTwoTypesCircular()
|
||||
{
|
||||
@ -278,7 +278,7 @@ type TypeTwo {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Single argument field
|
||||
* @see it('Single argument field')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -310,7 +310,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple type with interface
|
||||
* @see it('Simple type with interface')
|
||||
*/
|
||||
public function testSimpleTypeWithInterface()
|
||||
{
|
||||
@ -328,7 +328,7 @@ interface WorldInterface {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple output enum
|
||||
* @see it('Simple output enum')
|
||||
*/
|
||||
public function testSimpleOutputEnum()
|
||||
{
|
||||
@ -346,7 +346,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple input enum
|
||||
* @see it('Simple input enum')
|
||||
*/
|
||||
public function testSimpleInputEnum()
|
||||
{
|
||||
@ -364,7 +364,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Multiple value enum
|
||||
* @see it('Multiple value enum')
|
||||
*/
|
||||
public function testMultipleValueEnum()
|
||||
{
|
||||
@ -383,7 +383,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple Union
|
||||
* @see it('Simple Union')
|
||||
*/
|
||||
public function testSimpleUnion()
|
||||
{
|
||||
@ -403,7 +403,7 @@ type World {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Multiple Union
|
||||
* @see it('Multiple Union')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -484,7 +484,7 @@ type WorldTwo {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Specifying Interface type using __typename
|
||||
* @see it('Specifying Interface type using __typename')
|
||||
*/
|
||||
public function testSpecifyingInterfaceUsingTypename()
|
||||
{
|
||||
@ -548,7 +548,7 @@ type WorldTwo {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Custom Scalar
|
||||
* @see it('Custom Scalar')
|
||||
*/
|
||||
public function testCustomScalar()
|
||||
{
|
||||
@ -564,7 +564,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Input Object
|
||||
* @see it('Input Object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -596,7 +596,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Custom scalar argument field with default
|
||||
* @see it('Custom scalar argument field with default')
|
||||
*/
|
||||
public function testCustomScalarArgumentFieldWithDefault()
|
||||
{
|
||||
@ -612,7 +612,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple type with mutation
|
||||
* @see it('Simple type with mutation')
|
||||
*/
|
||||
public function testSimpleTypeWithMutation()
|
||||
{
|
||||
@ -637,7 +637,7 @@ type Mutation {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Simple type with subscription
|
||||
* @see it('Simple type with subscription')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -684,7 +684,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unreferenced type implementing referenced union
|
||||
* @see it('Unreferenced type implementing referenced union')
|
||||
*/
|
||||
public function testUnreferencedTypeImplementingReferencedUnion()
|
||||
{
|
||||
@ -704,7 +704,7 @@ union Union = Concrete
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Supports @deprecated
|
||||
* @see it('Supports @deprecated')
|
||||
*/
|
||||
public function testSupportsDeprecated()
|
||||
{
|
||||
@ -750,7 +750,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Correctly assign AST nodes
|
||||
* @see it('Correctly assign AST nodes')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -842,7 +842,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Default root operation type names
|
||||
* @see it('Default root operation type names')
|
||||
*/
|
||||
public function testDefaultRootOperationTypeNames()
|
||||
{
|
||||
@ -857,7 +857,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it can build invalid schema
|
||||
* @see it('can build invalid schema')
|
||||
*/
|
||||
public function testCanBuildInvalidSchema()
|
||||
{
|
||||
@ -874,7 +874,7 @@ type Query {
|
||||
// Describe: Failures
|
||||
|
||||
/**
|
||||
* @it Allows only a single schema definition
|
||||
* @see it('Allows only a single schema definition')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -923,7 +923,7 @@ type Yellow {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Allows only a single mutation type
|
||||
* @see it('Allows only a single mutation type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -975,7 +975,7 @@ type Yellow {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unknown type referenced
|
||||
* @see it('Unknown type referenced')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1013,7 +1013,7 @@ type Query implements Bar {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unknown type in union list
|
||||
* @see it('Unknown type in union list')
|
||||
*/
|
||||
public function testUnknownTypeInUnionList()
|
||||
{
|
||||
@ -1029,7 +1029,7 @@ type Query { testUnion: TestUnion }
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unknown query type
|
||||
* @see it('Unknown query type')
|
||||
*/
|
||||
public function testUnknownQueryType()
|
||||
{
|
||||
@ -1049,7 +1049,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unknown mutation type
|
||||
* @see it('Unknown mutation type')
|
||||
*/
|
||||
public function testUnknownMutationType()
|
||||
{
|
||||
@ -1070,7 +1070,7 @@ type Hello {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unknown subscription type
|
||||
* @see it('Unknown subscription type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1114,7 +1114,7 @@ query Foo { field }
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Does not consider fragment names
|
||||
* @see it('Does not consider fragment names')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ class CoerceValueTest extends TestCase
|
||||
// Describe: coerceValue
|
||||
|
||||
/**
|
||||
* @it coercing an array to GraphQLString produces an error
|
||||
* @see it('coercing an array to GraphQLString produces an error')
|
||||
*/
|
||||
public function testCoercingAnArrayToGraphQLStringProducesAnError()
|
||||
{
|
||||
@ -56,7 +56,7 @@ class CoerceValueTest extends TestCase
|
||||
// Describe: for GraphQLInt
|
||||
|
||||
/**
|
||||
* @it returns no error for int input
|
||||
* @see it('returns no error for int input')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -83,7 +83,7 @@ class CoerceValueTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it returns no error for null
|
||||
* @see it('returns no error for null')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -142,7 +142,7 @@ class CoerceValueTest extends TestCase
|
||||
// Describe: for GraphQLFloat
|
||||
|
||||
/**
|
||||
* @it returns no error for int input
|
||||
* @see it('returns no error for int input')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -169,7 +169,7 @@ class CoerceValueTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it returns no error for null
|
||||
* @see it('returns no error for null')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -216,7 +216,7 @@ class CoerceValueTest extends TestCase
|
||||
// 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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -253,7 +253,7 @@ class CoerceValueTest extends TestCase
|
||||
// DESCRIBE: for GraphQLInputObject
|
||||
|
||||
/**
|
||||
* @it returns no error for a valid input
|
||||
* @see it('returns no error for a valid input')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ class IsValidLiteralValueTest extends TestCase
|
||||
// DESCRIBE: isValidLiteralValue
|
||||
|
||||
/**
|
||||
* @it Returns no errors for a valid value
|
||||
* @see it('Returns no errors for a valid value')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ class QuotedOrListTest extends TestCase
|
||||
// DESCRIBE: quotedOrList
|
||||
|
||||
/**
|
||||
* @it Does not accept an empty list
|
||||
* @see it('Does not accept an empty list')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -32,7 +32,7 @@ class QuotedOrListTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Returns two item list
|
||||
* @see it('Returns two item list')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -54,7 +54,7 @@ class QuotedOrListTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Limits to five items
|
||||
* @see it('Limits to five items')
|
||||
*/
|
||||
public function testLimitsToFiveItems()
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ class SchemaPrinterTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints String Field
|
||||
* @see it('Prints String Field')
|
||||
*/
|
||||
public function testPrintsStringField()
|
||||
{
|
||||
@ -53,7 +53,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints [String] Field
|
||||
* @see it('Prints [String] Field')
|
||||
*/
|
||||
public function testPrintArrayStringField()
|
||||
{
|
||||
@ -68,7 +68,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints String! Field
|
||||
* @see it('Prints String! Field')
|
||||
*/
|
||||
public function testPrintNonNullStringField()
|
||||
{
|
||||
@ -83,7 +83,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints [String]! Field
|
||||
* @see it('Prints [String]! Field')
|
||||
*/
|
||||
public function testPrintNonNullArrayStringField()
|
||||
{
|
||||
@ -98,7 +98,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints [String!] Field
|
||||
* @see it('Prints [String!] Field')
|
||||
*/
|
||||
public function testPrintArrayNonNullStringField()
|
||||
{
|
||||
@ -113,7 +113,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints [String!]! Field
|
||||
* @see it('Prints [String!]! Field')
|
||||
*/
|
||||
public function testPrintNonNullArrayNonNullStringField()
|
||||
{
|
||||
@ -128,7 +128,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Print Object Field
|
||||
* @see it('Print Object Field')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -220,7 +220,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints String Field With Int! Arg
|
||||
* @see it('Prints String Field With Int! Arg')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -315,7 +315,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints custom query root type
|
||||
* @see it('Prints custom query root type')
|
||||
*/
|
||||
public function testPrintsCustomQueryRootType()
|
||||
{
|
||||
@ -341,7 +341,7 @@ type CustomQueryType {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Print Interface
|
||||
* @see it('Print Interface')
|
||||
*/
|
||||
public function testPrintInterface()
|
||||
{
|
||||
@ -382,7 +382,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Print Multiple Interface
|
||||
* @see it('Print Multiple Interface')
|
||||
*/
|
||||
public function testPrintMultipleInterface()
|
||||
{
|
||||
@ -436,7 +436,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Print Unions
|
||||
* @see it('Print Unions')
|
||||
*/
|
||||
public function testPrintUnions()
|
||||
{
|
||||
@ -491,7 +491,7 @@ union SingleUnion = Foo
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Print Input Type
|
||||
* @see it('Print Input Type')
|
||||
*/
|
||||
public function testInputType()
|
||||
{
|
||||
@ -524,7 +524,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Custom Scalar
|
||||
* @see it('Custom Scalar')
|
||||
*/
|
||||
public function testCustomScalar()
|
||||
{
|
||||
@ -554,7 +554,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Enum
|
||||
* @see it('Enum')
|
||||
*/
|
||||
public function testEnum()
|
||||
{
|
||||
@ -590,7 +590,7 @@ enum RGB {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Prints custom directives
|
||||
* @see it('Prints custom directives')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -696,7 +696,7 @@ type Query {
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Print Introspection Schema
|
||||
* @see it('Print Introspection Schema')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ class SuggestionListTest extends TestCase
|
||||
// DESCRIBE: suggestionList
|
||||
|
||||
/**
|
||||
* @it Returns results when input is empty
|
||||
* @see it('Returns results when input is empty')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -23,7 +23,7 @@ class ValueFromAstTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it rejects empty input
|
||||
* @see it('rejects empty input')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -95,7 +95,7 @@ class ValueFromAstTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it coerces lists of values
|
||||
* @see it('coerces lists of values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class DisableIntrospectionTest extends ValidatorTestCase
|
||||
// Validate: Disable Introspection
|
||||
|
||||
/**
|
||||
* @it fails if the query contains __schema
|
||||
* @see it('fails if the query contains __schema')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -11,7 +11,7 @@ class ExecutableDefinitionsTest extends ValidatorTestCase
|
||||
// Validate: Executable definitions
|
||||
|
||||
/**
|
||||
* @it with only operation
|
||||
* @see it('with only operation')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -44,7 +44,7 @@ class ExecutableDefinitionsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with typeDefinition
|
||||
* @see it('with typeDefinition')
|
||||
*/
|
||||
public function testWithTypeDefinition()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
// Validate: Fields on correct type
|
||||
|
||||
/**
|
||||
* @it Object field selection
|
||||
* @see it('Object field selection')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -36,7 +36,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Interface field selection
|
||||
* @see it('Interface field selection')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -61,7 +61,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Lying alias selection
|
||||
* @see it('Lying alias selection')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -105,7 +105,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Field not defined on fragment
|
||||
* @see it('Field not defined on fragment')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -133,7 +133,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Sub-field not defined
|
||||
* @see it('Sub-field not defined')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -163,7 +163,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Aliased field target not defined
|
||||
* @see it('Aliased field target not defined')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -189,7 +189,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Not defined on interface
|
||||
* @see it('Not defined on interface')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -215,7 +215,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Meta field selection on union
|
||||
* @see it('Meta field selection on union')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -260,7 +260,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it valid field in inline fragment
|
||||
* @see it('valid field in inline fragment')
|
||||
*/
|
||||
public function testValidFieldInInlineFragment()
|
||||
{
|
||||
@ -276,7 +276,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
// Describe: Fields on correct type error message
|
||||
|
||||
/**
|
||||
* @it Works with no suggestions
|
||||
* @see it('Works with no suggestions')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -317,7 +317,7 @@ class FieldsOnCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Limits lots of type suggestions
|
||||
* @see it('Limits lots of type suggestions')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
||||
// Validate: Fragments on composite types
|
||||
|
||||
/**
|
||||
* @it object is valid fragment type
|
||||
* @see it('object is valid fragment type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -62,7 +62,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it union is valid fragment type
|
||||
* @see it('union is valid fragment type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -87,7 +87,7 @@ class FragmentsOnCompositeTypesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it enum is invalid fragment type
|
||||
* @see it('enum is invalid fragment type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
// Validate: Known argument names:
|
||||
|
||||
/**
|
||||
* @it single arg is known
|
||||
* @see it('single arg is known')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -34,7 +34,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it ignores args of unknown fields
|
||||
* @see it('ignores args of unknown fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -58,7 +58,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it no args on optional arg
|
||||
* @see it('no args on optional arg')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -91,7 +91,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it directive args are known
|
||||
* @see it('directive args are known')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -117,7 +117,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it misspelled directive args are reported
|
||||
* @see it('misspelled directive args are reported')
|
||||
*/
|
||||
public function testMisspelledDirectiveArgsAreReported()
|
||||
{
|
||||
@ -131,7 +131,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it invalid arg name
|
||||
* @see it('invalid arg name')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -159,7 +159,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it unknown args amongst known args
|
||||
* @see it('unknown args amongst known args')
|
||||
*/
|
||||
public function testUnknownArgsAmongstKnownArgs()
|
||||
{
|
||||
@ -174,7 +174,7 @@ class KnownArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it unknown args deeply
|
||||
* @see it('unknown args deeply')
|
||||
*/
|
||||
public function testUnknownArgsDeeply()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
// Validate: Known directives
|
||||
|
||||
/**
|
||||
* @it with no directives
|
||||
* @see it('with no directives')
|
||||
*/
|
||||
public function testWithNoDirectives()
|
||||
{
|
||||
@ -27,7 +27,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with known directives
|
||||
* @see it('with known directives')
|
||||
*/
|
||||
public function testWithKnownDirectives()
|
||||
{
|
||||
@ -44,7 +44,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with unknown directive
|
||||
* @see it('with unknown directive')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -84,7 +84,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with well placed directives
|
||||
* @see it('with well placed directives')
|
||||
*/
|
||||
public function testWithWellPlacedDirectives()
|
||||
{
|
||||
@ -103,7 +103,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with misplaced directives
|
||||
* @see it('with misplaced directives')
|
||||
*/
|
||||
public function testWithMisplacedDirectives()
|
||||
{
|
||||
@ -127,7 +127,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
// within schema language
|
||||
|
||||
/**
|
||||
* @it with well placed directives
|
||||
* @see it('with well placed directives')
|
||||
*/
|
||||
public function testWSLWithWellPlacedDirectives()
|
||||
{
|
||||
@ -171,7 +171,7 @@ class KnownDirectivesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with misplaced directives
|
||||
* @see it('with misplaced directives')
|
||||
*/
|
||||
public function testWSLWithMisplacedDirectives()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class KnownFragmentNamesTest extends ValidatorTestCase
|
||||
// Validate: Known fragment names
|
||||
|
||||
/**
|
||||
* @it known fragment names are valid
|
||||
* @see it('known fragment names are valid')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class KnownTypeNamesTest extends ValidatorTestCase
|
||||
// Validate: Known type names
|
||||
|
||||
/**
|
||||
* @it known type names are valid
|
||||
* @see it('known type names are valid')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -49,7 +49,7 @@ class KnownTypeNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it ignores type definitions
|
||||
* @see it('ignores type definitions')
|
||||
*/
|
||||
public function testIgnoresTypeDefinitions()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
||||
// Validate: Anonymous operation must be alone
|
||||
|
||||
/**
|
||||
* @it no operations
|
||||
* @see it('no operations')
|
||||
*/
|
||||
public function testNoOperations()
|
||||
{
|
||||
@ -22,7 +22,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it one anon operation
|
||||
* @see it('one anon operation')
|
||||
*/
|
||||
public function testOneAnonOperation()
|
||||
{
|
||||
@ -34,7 +34,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple named operations
|
||||
* @see it('multiple named operations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -65,7 +65,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple anon operations
|
||||
* @see it('multiple anon operations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -100,7 +100,7 @@ class LoneAnonymousOperationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it anon operation with a subscription
|
||||
* @see it('anon operation with a subscription')
|
||||
*/
|
||||
public function testAnonOperationWithSubscription()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
||||
// Validate: No circular fragment spreads
|
||||
|
||||
/**
|
||||
* @it single reference is valid
|
||||
* @see it('single reference is valid')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -44,7 +44,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it double spread within abstract types
|
||||
* @see it('double spread within abstract types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -74,7 +74,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it spreading recursively within field fails
|
||||
* @see it('spreading recursively within field fails')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -114,7 +114,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it no spreading itself indirectly
|
||||
* @see it('no spreading itself indirectly')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -170,7 +170,7 @@ class NoFragmentCyclesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it no spreading itself deeply
|
||||
* @see it('no spreading itself deeply')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
||||
// Validate: No undefined variables
|
||||
|
||||
/**
|
||||
* @it all variables defined
|
||||
* @see it('all variables defined')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -123,7 +123,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variable within recursive fragment defined
|
||||
* @see it('variable within recursive fragment defined')
|
||||
*/
|
||||
public function testVariableWithinRecursiveFragmentDefined()
|
||||
{
|
||||
@ -140,7 +140,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variable not defined
|
||||
* @see it('variable not defined')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -168,7 +168,7 @@ class NoUndefinedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple variables not defined
|
||||
* @see it('multiple variables not defined')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
||||
// Validate: No unused fragments
|
||||
|
||||
/**
|
||||
* @it all fragment names are used
|
||||
* @see it('all fragment names are used')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -66,7 +66,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it contains unknown fragments
|
||||
* @see it('contains unknown fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -144,7 +144,7 @@ class NoUnusedFragmentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it contains unknown and undef fragments
|
||||
* @see it('contains unknown and undef fragments')
|
||||
*/
|
||||
public function testContainsUnknownAndUndefFragments()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
||||
// Validate: No unused variables
|
||||
|
||||
/**
|
||||
* @it uses all variables
|
||||
* @see it('uses all variables')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -58,7 +58,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it uses all variables in fragments
|
||||
* @see it('uses all variables in fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -104,7 +104,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variable used by recursive fragment
|
||||
* @see it('variable used by recursive fragment')
|
||||
*/
|
||||
public function testVariableUsedByRecursiveFragment()
|
||||
{
|
||||
@ -121,7 +121,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variable not used
|
||||
* @see it('variable not used')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -150,7 +150,7 @@ class NoUnusedVariablesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variable not used in fragments
|
||||
* @see it('variable not used in fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
// Validate: Overlapping fields can be merged
|
||||
|
||||
/**
|
||||
* @it unique fields
|
||||
* @see it('unique fields')
|
||||
*/
|
||||
public function testUniqueFields()
|
||||
{
|
||||
@ -27,7 +27,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it identical fields
|
||||
* @see it('identical fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -53,7 +53,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it identical fields with identical directives
|
||||
* @see it('identical fields with identical directives')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -79,7 +79,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it different directives with different aliases
|
||||
* @see it('different directives with different aliases')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -145,7 +145,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Alias masking direct field access
|
||||
* @see it('Alias masking direct field access')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -201,7 +201,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it conflicting args
|
||||
* @see it('conflicting args')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -238,7 +238,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it encounters conflict in fragments
|
||||
* @see it('encounters conflict in fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -305,7 +305,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it deep conflict
|
||||
* @see it('deep conflict')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -366,7 +366,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it very deep conflict
|
||||
* @see it('very deep conflict')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -521,7 +521,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it ignores unknown fragments
|
||||
* @see it('ignores unknown fragments')
|
||||
*/
|
||||
public function testIgnoresUnknownFragments()
|
||||
{
|
||||
@ -542,7 +542,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
// Describe: return types must be unambiguous
|
||||
|
||||
/**
|
||||
* @it conflicting return types which potentially overlap
|
||||
* @see it('conflicting return types which potentially overlap')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -846,7 +846,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it allows non-conflicting overlaping types
|
||||
* @see it('allows non-conflicting overlaping types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -884,7 +884,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it allows inline typeless fragments
|
||||
* @see it('allows inline typeless fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -938,7 +938,7 @@ class OverlappingFieldsCanBeMergedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it ignores unknown types
|
||||
* @see it('ignores unknown types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
// Validate: Possible fragment spreads
|
||||
|
||||
/**
|
||||
* @it of the same object
|
||||
* @see it('of the same object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -31,7 +31,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it object into an implemented interface
|
||||
* @see it('object into an implemented interface')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -53,7 +53,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it union into contained object
|
||||
* @see it('union into contained object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -75,7 +75,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it union into overlapping union
|
||||
* @see it('union into overlapping union')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -97,7 +97,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it interface into overlapping interface
|
||||
* @see it('interface into overlapping interface')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -118,7 +118,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it interface into overlapping union
|
||||
* @see it('interface into overlapping union')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -140,7 +140,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it different object into object
|
||||
* @see it('different object into object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -167,7 +167,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it object into not implementing interface
|
||||
* @see it('object into not implementing interface')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -193,7 +193,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it union into not contained object
|
||||
* @see it('union into not contained object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -219,7 +219,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it union into non overlapping union
|
||||
* @see it('union into non overlapping union')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -245,7 +245,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it interface into non overlapping interface
|
||||
* @see it('interface into non overlapping interface')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -276,7 +276,7 @@ class PossibleFragmentSpreadsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it interface into non overlapping union
|
||||
* @see it('interface into non overlapping union')
|
||||
*/
|
||||
public function testInterfaceIntoNonOverlappingUnion()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
// Validate: Provided required arguments
|
||||
|
||||
/**
|
||||
* @it ignores unknown arguments
|
||||
* @see it('ignores unknown arguments')
|
||||
*/
|
||||
public function testIgnoresUnknownArguments()
|
||||
{
|
||||
@ -27,7 +27,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
// Valid non-nullable value:
|
||||
|
||||
/**
|
||||
* @it Arg on optional arg
|
||||
* @see it('Arg on optional arg')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -55,7 +55,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Multiple args
|
||||
* @see it('Multiple args')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -83,7 +83,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it No args on multiple optional
|
||||
* @see it('No args on multiple optional')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -111,7 +111,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Second arg on multiple optional
|
||||
* @see it('Second arg on multiple optional')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -169,7 +169,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
// Invalid non-nullable value
|
||||
|
||||
/**
|
||||
* @it Missing one non-nullable argument
|
||||
* @see it('Missing one non-nullable argument')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -202,7 +202,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Incorrect value and missing argument
|
||||
* @see it('Incorrect value and missing argument')
|
||||
*/
|
||||
public function testIncorrectValueAndMissingArgument()
|
||||
{
|
||||
@ -220,7 +220,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
// Describe: Directive arguments
|
||||
|
||||
/**
|
||||
* @it ignores unknown directives
|
||||
* @see it('ignores unknown directives')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -249,7 +249,7 @@ class ProvidedNonNullArgumentsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it with directive with missing types
|
||||
* @see it('with directive with missing types')
|
||||
*/
|
||||
public function testWithDirectiveWithMissingTypes()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
||||
// Validate: Scalar leafs
|
||||
|
||||
/**
|
||||
* @it valid scalar selection
|
||||
* @see it('valid scalar selection')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -34,7 +34,7 @@ class ScalarLeafsTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it interface type missing selection
|
||||
* @see it('interface type missing selection')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
// Validate: Unique argument names
|
||||
|
||||
/**
|
||||
* @it no arguments on field
|
||||
* @see it('no arguments on field')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -34,7 +34,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it argument on field
|
||||
* @see it('argument on field')
|
||||
*/
|
||||
public function testArgumentOnField()
|
||||
{
|
||||
@ -46,7 +46,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it argument on directive
|
||||
* @see it('argument on directive')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -83,7 +83,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it same argument on two directives
|
||||
* @see it('same argument on two directives')
|
||||
*/
|
||||
public function testSameArgumentOnTwoDirectives()
|
||||
{
|
||||
@ -95,7 +95,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple field arguments
|
||||
* @see it('multiple field arguments')
|
||||
*/
|
||||
public function testMultipleFieldArguments()
|
||||
{
|
||||
@ -107,7 +107,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple directive arguments
|
||||
* @see it('multiple directive arguments')
|
||||
*/
|
||||
public function testMultipleDirectiveArguments()
|
||||
{
|
||||
@ -119,7 +119,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it duplicate field arguments
|
||||
* @see it('duplicate field arguments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -148,7 +148,7 @@ class UniqueArgumentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it duplicate directive arguments
|
||||
* @see it('duplicate directive arguments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ use GraphQL\Validator\Rules\UniqueDirectivesPerLocation;
|
||||
class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
||||
{
|
||||
/**
|
||||
* @it no directives
|
||||
* @see it('no directives')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -30,7 +30,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it unique directives in same locations
|
||||
* @see it('unique directives in same locations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -54,7 +54,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it same directives in similar locations
|
||||
* @see it('same directives in similar locations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -111,7 +111,7 @@ class UniqueDirectivesPerLocationTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it duplicate directives in many locations
|
||||
* @see it('duplicate directives in many locations')
|
||||
*/
|
||||
public function testDuplicateDirectivesInManyLocations()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
||||
// Validate: Unique fragment names
|
||||
|
||||
/**
|
||||
* @it no fragments
|
||||
* @see it('no fragments')
|
||||
*/
|
||||
public function testNoFragments()
|
||||
{
|
||||
@ -22,7 +22,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it one fragment
|
||||
* @see it('one fragment')
|
||||
*/
|
||||
public function testOneFragment()
|
||||
{
|
||||
@ -38,7 +38,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it many fragments
|
||||
* @see it('many fragments')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -93,7 +93,7 @@ class UniqueFragmentNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it fragments named the same
|
||||
* @see it('fragments named the same')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
||||
// Validate: Unique input field names
|
||||
|
||||
/**
|
||||
* @it input object with fields
|
||||
* @see it('input object with fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -34,7 +34,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple input object fields
|
||||
* @see it('multiple input object fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -66,7 +66,7 @@ class UniqueInputFieldNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it duplicate input object fields
|
||||
* @see it('duplicate input object fields')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
||||
// Validate: Unique operation names
|
||||
|
||||
/**
|
||||
* @it no operations
|
||||
* @see it('no operations')
|
||||
*/
|
||||
public function testNoOperations()
|
||||
{
|
||||
@ -22,7 +22,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it one anon operation
|
||||
* @see it('one anon operation')
|
||||
*/
|
||||
public function testOneAnonOperation()
|
||||
{
|
||||
@ -34,7 +34,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it one named operation
|
||||
* @see it('one named operation')
|
||||
*/
|
||||
public function testOneNamedOperation()
|
||||
{
|
||||
@ -46,7 +46,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple operations
|
||||
* @see it('multiple operations')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -97,7 +97,7 @@ class UniqueOperationNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it multiple operations of same name
|
||||
* @see it('multiple operations of same name')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class UniqueVariableNamesTest extends ValidatorTestCase
|
||||
// Validate: Unique variable names
|
||||
|
||||
/**
|
||||
* @it unique variable names
|
||||
* @see it('unique variable names')
|
||||
*/
|
||||
public function testUniqueVariableNames()
|
||||
{
|
||||
@ -21,7 +21,7 @@ class UniqueVariableNamesTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it duplicate variable names
|
||||
* @see it('duplicate variable names')
|
||||
*/
|
||||
public function testDuplicateVariableNames()
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ class ValidationTest extends ValidatorTestCase
|
||||
// Validate: Supports full validation
|
||||
|
||||
/**
|
||||
* @it validates queries
|
||||
* @see it('validates queries')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Valid values
|
||||
|
||||
/**
|
||||
* @it Good int value
|
||||
* @see it('Good int value')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -73,7 +73,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Good boolean value
|
||||
* @see it('Good boolean value')
|
||||
*/
|
||||
public function testGoodBooleanValue()
|
||||
{
|
||||
@ -87,7 +87,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Good string value
|
||||
* @see it('Good string value')
|
||||
*/
|
||||
public function testGoodStringValue()
|
||||
{
|
||||
@ -101,7 +101,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Good float value
|
||||
* @see it('Good float value')
|
||||
*/
|
||||
public function testGoodFloatValue()
|
||||
{
|
||||
@ -126,7 +126,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Int into Float
|
||||
* @see it('Int into Float')
|
||||
*/
|
||||
public function testIntIntoFloat()
|
||||
{
|
||||
@ -140,7 +140,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Int into ID
|
||||
* @see it('Int into ID')
|
||||
*/
|
||||
public function testIntIntoID()
|
||||
{
|
||||
@ -154,7 +154,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String into ID
|
||||
* @see it('String into ID')
|
||||
*/
|
||||
public function testStringIntoID()
|
||||
{
|
||||
@ -168,7 +168,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Good enum value
|
||||
* @see it('Good enum value')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -196,7 +196,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it null into nullable type
|
||||
* @see it('null into nullable type')
|
||||
*/
|
||||
public function testNullIntoNullableType()
|
||||
{
|
||||
@ -220,7 +220,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid String values
|
||||
|
||||
/**
|
||||
* @it Int into String
|
||||
* @see it('Int into String')
|
||||
*/
|
||||
public function testIntIntoString()
|
||||
{
|
||||
@ -236,7 +236,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Float into String
|
||||
* @see it('Float into String')
|
||||
*/
|
||||
public function testFloatIntoString()
|
||||
{
|
||||
@ -252,7 +252,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Boolean into String
|
||||
* @see it('Boolean into String')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -286,7 +286,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid Int values
|
||||
|
||||
/**
|
||||
* @it String into Int
|
||||
* @see it('String into Int')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -318,7 +318,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unquoted String into Int
|
||||
* @see it('Unquoted String into Int')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -350,7 +350,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Float into Int
|
||||
* @see it('Float into Int')
|
||||
*/
|
||||
public function testFloatIntoInt()
|
||||
{
|
||||
@ -368,7 +368,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid Float values
|
||||
|
||||
/**
|
||||
* @it String into Float
|
||||
* @see it('String into Float')
|
||||
*/
|
||||
public function testStringIntoFloat()
|
||||
{
|
||||
@ -384,7 +384,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Boolean into Float
|
||||
* @see it('Boolean into Float')
|
||||
*/
|
||||
public function testBooleanIntoFloat()
|
||||
{
|
||||
@ -400,7 +400,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unquoted into Float
|
||||
* @see it('Unquoted into Float')
|
||||
*/
|
||||
public function testUnquotedIntoFloat()
|
||||
{
|
||||
@ -418,7 +418,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid Boolean value
|
||||
|
||||
/**
|
||||
* @it Int into Boolean
|
||||
* @see it('Int into Boolean')
|
||||
*/
|
||||
public function testIntIntoBoolean()
|
||||
{
|
||||
@ -434,7 +434,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Float into Boolean
|
||||
* @see it('Float into Boolean')
|
||||
*/
|
||||
public function testFloatIntoBoolean()
|
||||
{
|
||||
@ -450,7 +450,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String into Boolean
|
||||
* @see it('String into Boolean')
|
||||
*/
|
||||
public function testStringIntoBoolean()
|
||||
{
|
||||
@ -466,7 +466,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unquoted into Boolean
|
||||
* @see it('Unquoted into Boolean')
|
||||
*/
|
||||
public function testUnquotedIntoBoolean()
|
||||
{
|
||||
@ -484,7 +484,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid ID value
|
||||
|
||||
/**
|
||||
* @it Float into ID
|
||||
* @see it('Float into ID')
|
||||
*/
|
||||
public function testFloatIntoID()
|
||||
{
|
||||
@ -500,7 +500,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Boolean into ID
|
||||
* @see it('Boolean into ID')
|
||||
*/
|
||||
public function testBooleanIntoID()
|
||||
{
|
||||
@ -516,7 +516,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Unquoted into ID
|
||||
* @see it('Unquoted into ID')
|
||||
*/
|
||||
public function testUnquotedIntoID()
|
||||
{
|
||||
@ -534,7 +534,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid Enum value
|
||||
|
||||
/**
|
||||
* @it Int into Enum
|
||||
* @see it('Int into Enum')
|
||||
*/
|
||||
public function testIntIntoEnum()
|
||||
{
|
||||
@ -550,7 +550,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Float into Enum
|
||||
* @see it('Float into Enum')
|
||||
*/
|
||||
public function testFloatIntoEnum()
|
||||
{
|
||||
@ -566,7 +566,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String into Enum
|
||||
* @see it('String into Enum')
|
||||
*/
|
||||
public function testStringIntoEnum()
|
||||
{
|
||||
@ -588,7 +588,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Boolean into Enum
|
||||
* @see it('Boolean into Enum')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -644,7 +644,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Valid List value
|
||||
|
||||
/**
|
||||
* @it Good list value
|
||||
* @see it('Good list value')
|
||||
*/
|
||||
public function testGoodListValue()
|
||||
{
|
||||
@ -658,7 +658,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Empty list value
|
||||
* @see it('Empty list value')
|
||||
*/
|
||||
public function testEmptyListValue()
|
||||
{
|
||||
@ -672,7 +672,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Null value
|
||||
* @see it('Null value')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -702,7 +702,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid List value
|
||||
|
||||
/**
|
||||
* @it Incorrect item type
|
||||
* @see it('Incorrect item type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -736,7 +736,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Valid non-nullable value
|
||||
|
||||
/**
|
||||
* @it Arg on optional arg
|
||||
* @see it('Arg on optional arg')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -764,7 +764,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Multiple args
|
||||
* @see it('Multiple args')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -792,7 +792,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it No args on multiple optional
|
||||
* @see it('No args on multiple optional')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -820,7 +820,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Second arg on multiple optional
|
||||
* @see it('Second arg on multiple optional')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -878,7 +878,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// Invalid non-nullable value
|
||||
|
||||
/**
|
||||
* @it Incorrect value type
|
||||
* @see it('Incorrect value type')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -911,7 +911,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Null value
|
||||
* @see it('Null value')
|
||||
*/
|
||||
public function testNullValue2()
|
||||
{
|
||||
@ -930,7 +930,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// 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()
|
||||
{
|
||||
@ -944,7 +944,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Partial object, only required
|
||||
* @see it('Partial object, only required')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -972,7 +972,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Partial object, including required
|
||||
* @see it('Partial object, including required')
|
||||
*/
|
||||
public function testPartialObjectIncludingRequired()
|
||||
{
|
||||
@ -986,7 +986,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Full object
|
||||
* @see it('Full object')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1028,7 +1028,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// DESCRIBE: Invalid input object value
|
||||
|
||||
/**
|
||||
* @it Partial object, missing required
|
||||
* @see it('Partial object, missing required')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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
|
||||
* @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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1135,7 +1135,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// DESCRIBE: Directive arguments
|
||||
|
||||
/**
|
||||
* @it with directives of valid types
|
||||
* @see it('with directives of valid types')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1171,7 +1171,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
// DESCRIBE: Variable default values
|
||||
|
||||
/**
|
||||
* @it variables with valid default values
|
||||
* @see it('variables with valid default values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -1223,7 +1223,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variables with invalid default values
|
||||
* @see it('variables with invalid default values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -1260,7 +1260,7 @@ class ValuesOfCorrectTypeTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it complex variables missing required field
|
||||
* @see it('complex variables missing required field')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class VariablesAreInputTypesTest extends ValidatorTestCase
|
||||
// Validate: Variables are input types
|
||||
|
||||
/**
|
||||
* @it input types are valid
|
||||
* @see it('input types are valid')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
||||
// DESCRIBE: Validate: Variable default value is allowed
|
||||
|
||||
/**
|
||||
* @it variables with no default values
|
||||
* @see it('variables with no default values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -46,7 +46,7 @@ class VariablesDefaultValueAllowedTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it variables with valid default values
|
||||
* @see it('variables with valid default values')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
@ -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()
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
// Validate: Variables are in allowed positions
|
||||
|
||||
/**
|
||||
* @it Boolean => Boolean
|
||||
* @see it('Boolean => Boolean')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -57,7 +57,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Boolean! => Boolean
|
||||
* @see it('Boolean! => Boolean')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -93,7 +93,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Int => Int! with default
|
||||
* @see it('Int => Int! with default')
|
||||
*/
|
||||
public function testIntXIntNonNullWithDefault()
|
||||
{
|
||||
@ -109,7 +109,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it [String] => [String]
|
||||
* @see it('[String] => [String]')
|
||||
*/
|
||||
public function testListOfStringXListOfString()
|
||||
{
|
||||
@ -124,7 +124,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it [String!] => [String]
|
||||
* @see it('[String!] => [String]')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -154,7 +154,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String! => [String] in item position
|
||||
* @see it('String! => [String] in item position')
|
||||
*/
|
||||
public function testStringNonNullXListOfStringInItemPosition()
|
||||
{
|
||||
@ -169,7 +169,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it ComplexInput => ComplexInput
|
||||
* @see it('ComplexInput => ComplexInput')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -199,7 +199,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Boolean! => Boolean! in directive
|
||||
* @see it('Boolean! => Boolean! in directive')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -225,7 +225,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Int => Int!
|
||||
* @see it('Int => Int!')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -267,7 +267,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it Int => Int! within nested fragment
|
||||
* @see it('Int => Int! within nested fragment')
|
||||
*/
|
||||
public function testIntXIntNonNullWithinNestedFragment()
|
||||
{
|
||||
@ -296,7 +296,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String over Boolean
|
||||
* @see it('String over Boolean')
|
||||
*/
|
||||
public function testStringOverBoolean()
|
||||
{
|
||||
@ -315,7 +315,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String => [String]
|
||||
* @see it('String => [String]')
|
||||
*/
|
||||
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()
|
||||
{
|
||||
@ -351,7 +351,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it String => Boolean! in directive
|
||||
* @see it('String => Boolean! in directive')
|
||||
*/
|
||||
public function testStringXBooleanNonNullInDirective()
|
||||
{
|
||||
@ -369,7 +369,7 @@ class VariablesInAllowedPositionTest extends ValidatorTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @it [String] => [String!]
|
||||
* @see it('[String] => [String!]')
|
||||
*/
|
||||
public function testStringArrayXStringNonNullArray()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user