Simon Podlipsky
c4e06ba528
Use self:: in tests where appropriate
2018-09-19 20:50:32 +02:00
Simon Podlipsky
bd8722652a
Fix CS in tests/Server
2018-09-02 10:18:45 +02:00
Simon Podlipsky
715146cdd1
Add void return typehint to test methods
2018-08-31 14:41:18 +02:00
Vladimir Razuvaev
c3d69c7c2b
Fixed tests for PHPUnit 7+
2018-08-07 23:59:48 +07:00
Simon Podlipsky
24b6b736b2
Upgrade PHPUnit
2018-07-29 19:01:39 +02:00
Vladimir Razuvaev
7762430bc3
Merge pull request #256 from camuthig/fix-operation-param-operation-name
...
Parse operation name from operationName instead of operation
2018-03-29 20:25:39 +08:00
Chris Muthig
8aa6dc17a5
Parse operation name from operationName instead of operation
2018-03-03 15:41:55 -08:00
Daniel Tschinder
60df83f47e
Preserve original coercion errors, improve error quality.
...
This is a fairly major refactoring of coerceValue which returns an Either so it can return a complete collection of errors. This allows originalError to be preserved for scalar coercion errors and ensures *all* errors are represented in the response.
This had a minor change to the logic in execute / subscribe to allow for buildExecutionContext to abrupt complete with multiple errors.
ref: graphql/graphql-js#1133
2018-02-13 16:51:44 +01:00
Vladimir Razuvaev
6ff427d241
Server: do not raise an error when variables are passed as empty string ( #156 )
2017-08-30 23:26:45 +07:00
Vladimir Razuvaev
e6e531b88b
Server: throw only when there is a configuration or logic error (invariant violation)
2017-07-19 19:30:39 +07:00
Vladimir Razuvaev
0e2ac57515
Split HTTP server execution to canonical replaceable steps: parsing, validation, execution with separate tests for each step
2017-07-17 16:57:30 +07:00