graphql-php/tests/Type
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
..
ConfigTest.php Improved docblock comments (suitable for reference docs generation) 2017-08-19 23:01:46 +07:00
DefinitionTest.php Move schema validation into separate step (type constructors) 2018-02-15 12:14:08 +01:00
EnumTypeTest.php Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00
IntrospectionTest.php Improve introspection types + new getIntrospectionQuery() 2018-02-11 18:19:52 +01:00
ObjectIdStub.php indentation 2017-12-12 13:36:20 +01:00
ResolutionTest.php Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09:00
ResolveInfoTest.php pass failing test 2017-03-16 15:41:29 +00:00
ScalarSerializationTest.php Preserve original coercion errors, improve error quality. 2018-02-13 16:51:44 +01:00
TestClasses.php Introduced type resolution strategies: eager and lazy (for #69) 2016-12-14 17:12:09 +07:00
TypeLoaderTest.php Preserve original coercion errors, improve error quality. 2018-02-13 16:51:44 +01:00
ValidationTest.php Move schema validation into separate step (type constructors) 2018-02-15 12:14:08 +01:00