graphql-php/tests/Executor
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
..
Promise Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09:00
AbstractPromiseTest.php Support for union types when using buildSchema 2018-02-10 18:45:01 +01:00
AbstractTest.php Added link to docs for generic error about unique type instance (#149) 2017-08-20 22:28:17 +07:00
DeferredFieldsTest.php Moved GraphQL\Utils to GraphQL\Utils\Utils 2017-07-10 19:53:46 +07:00
DirectivesTest.php Several executor tests 2016-10-18 20:30:15 +07:00
ExecutionResultTest.php Spec compliance improvement: data key should not exist in response when it is null / missing (#56) 2016-10-18 22:25:39 +07:00
ExecutorLazySchemaTest.php Added link to docs for generic error about unique type instance (#149) 2017-08-20 22:28:17 +07:00
ExecutorSchemaTest.php Deprecated GraphQL\Type\Definition\Config (#148) 2017-08-14 00:09:02 +07:00
ExecutorTest.php Update to match SDL changes 2018-02-11 13:27:26 +01:00
LazyInterfaceTest.php Schema validation + tests (#148) 2017-08-13 23:04:03 +07:00
ListsTest.php Default error formatter now returns "Internal server error" unless error is client-aware and safe to report directly to end-users 2017-07-18 20:57:30 +07:00
MutationsTest.php Default error formatter now returns "Internal server error" unless error is client-aware and safe to report directly to end-users 2017-07-18 20:57:30 +07:00
NonNullTest.php Default error formatter now returns "Internal server error" unless error is client-aware and safe to report directly to end-users 2017-07-18 20:57:30 +07:00
ResolveTest.php Reverted #116 (now Executor::defaultFieldResolver checks for instanceof Closure vs is_callable again) 2017-07-08 15:22:17 +07:00
TestClasses.php Fix parsing of default values in build-schema 2018-02-10 18:45:23 +01:00
UnionInterfaceTest.php Support for union types when using buildSchema 2018-02-10 18:45:01 +01:00
ValuesTest.php Preserve original coercion errors, improve error quality. 2018-02-13 16:51:44 +01:00
VariablesTest.php Validate literals in a single rule with finer precision 2018-02-15 21:29:14 +01:00