graphql-php/tests/Validator
Daniel Tschinder 58e0c7a178 Validate literals in a single rule with finer precision
This generalizes the "arguments of correct type" and "default values of correct type" to a single rule "values of correct type" which has been re-written to rely on a traversal rather than the utility function `isValidLiteralValue`. To reduce breaking scope, this does not remove that utility even though it's no longer used directly within the library. Since the default values rule included another validation rule that rule was renamed to a more apt "variable default value allowed".

This also includes the original errors from custom scalars in the validation error output, solving the remainder of graphql/graphql-js#821.

ref: graphql/graphql-js#1144
2018-02-15 21:29:14 +01:00
..
AbstractQuerySecurityTest.php Improve introspection types + new getIntrospectionQuery() 2018-02-11 18:19:52 +01:00
DisableIntrospectionTest.php Adds tests for DisableIntrospection Validation rule 2017-06-17 14:49:07 +02:00
ExecutableDefinitionsTest.php Update to match SDL changes 2018-02-11 13:27:26 +01:00
FieldsOnCorrectTypeTest.php Update some validators to latest upstream version 2018-02-15 17:19:53 +01:00
FragmentsOnCompositeTypesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
KnownArgumentNamesTest.php Update some validators to latest upstream version 2018-02-15 17:19:53 +01:00
KnownDirectivesTest.php SDL Spec changes 2018-02-11 21:08:53 +01:00
KnownFragmentNamesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
KnownTypeNamesTest.php Update some validators to latest upstream version 2018-02-15 17:19:53 +01:00
LoneAnonymousOperationTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
NoFragmentCyclesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
NoUndefinedVariablesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
NoUnusedFragmentsTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
NoUnusedVariablesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
OverlappingFieldsCanBeMergedTest.php Fix infinite loop on invalid queries in OverlappingFields 2018-02-11 17:58:48 +01:00
PossibleFragmentSpreadsTest.php Fix Bug in PossibleFragmentSpreads validator 2018-02-13 18:08:05 +01:00
ProvidedNonNullArgumentsTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
QueryComplexityTest.php Abstract base class for validation rules 2017-08-18 20:56:04 +07:00
QueryDepthTest.php Updated introspection query and related tests for recent changes 2016-10-19 01:35:18 +07:00
QuerySecuritySchema.php Fix KnownDirectives validator to support all directives 2018-02-11 13:15:51 +01:00
ScalarLeafsTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
TestCase.php Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
UniqueArgumentNamesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
UniqueDirectivesPerLocationTest.php Added validation rule for unique directives per location 2016-11-19 00:21:56 +07:00
UniqueFragmentNamesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
UniqueInputFieldNamesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
UniqueOperationNamesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
UniqueVariableNamesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
ValidationTest.php Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
ValuesOfCorrectTypeTest.php Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
VariablesAreInputTypesTest.php Moved all error-related classes to separate namespace; fixed related broken tests 2016-10-21 16:40:56 +07:00
VariablesDefaultValueAllowedTest.php Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
VariablesInAllowedPositionTest.php Cleaning up old unused messages 2016-12-06 03:45:52 +07:00