graphql-php/tests/Type
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
..
ConfigTest.php Improved docblock comments (suitable for reference docs generation) 2017-08-19 23:01:46 +07:00
DefinitionTest.php Support for union types when using buildSchema 2018-02-10 18:45:01 +01:00
EnumTypeTest.php Improve introspection types + new getIntrospectionQuery() 2018-02-11 18:19:52 +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 Leverage PHPUnit setExpectedException() instead of custom code 2018-01-01 18:06:08 +09:00
TestClasses.php Introduced type resolution strategies: eager and lazy (for #69) 2016-12-14 17:12:09 +07:00
TypeLoaderTest.php Tests for lazy type loading during query execution + related changed 2017-08-15 01:49:56 +07:00
ValidationTest.php Validate schema root types and directives 2018-02-13 10:42:35 +01:00