graphql-php/tests/Utils
Daniel Tschinder 06c6c4bd97 Validate schema root types and directives
This moves validation out of GraphQLSchema's constructor (but not yet from other type constructors), which is responsible for root type validation and interface implementation checking.

Reduces time to construct GraphQLSchema significantly, shifting the time to validation.

This also allows for much looser rules within the schema builders, which implicitly validate while trying to adhere to flow types. Instead we use any casts to loosen the rules to defer that to validation where errors can be richer.

This also loosens the rule that a schema can only be constructed if it has a query type, moving that to validation as well. That makes flow typing slightly less nice, but allows for incremental schema building which is valuable

ref: graphql/graphql-js#1124
2018-02-13 10:42:35 +01:00
..
AstFromValueTest.php Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09:00
AstFromValueUntypedTest.php Fix parsing of default values in build-schema 2018-02-10 18:45:23 +01:00
BuildSchemaTest.php Validate schema root types and directives 2018-02-13 10:42:35 +01:00
ExtractTypesTest.php Deprecated GraphQL\Type\Definition\Config (#148) 2017-08-14 00:09:02 +07:00
FindBreakingChangesTest.php Add warnings for nullable changes 2018-02-10 18:45:18 +01:00
IsValidPHPValueTest.php Update query variable coercion to meet the rules outlined in the 2017-09-18 12:14:09 -04:00
MixedStoreTest.php Moved GraphQL\Utils to GraphQL\Utils\Utils 2017-07-10 19:53:46 +07:00
SchemaPrinterTest.php Include test that printSchema includes non-spec directives. 2018-02-11 21:32:40 +01:00
ValueFromAstTest.php Moved GraphQL\Utils to GraphQL\Utils\Utils 2017-07-10 19:53:46 +07:00