1 | <?php |
||
6 | class Issue171Test extends \PHPUnit_Framework_TestCase |
||
7 | { |
||
8 | private $introspectionQuery = <<<TEXT |
||
9 | query IntrospectionQuery { |
||
10 | __schema { |
||
11 | queryType { name } |
||
12 | mutationType { name } |
||
13 | types { |
||
14 | ...FullType |
||
15 | } |
||
16 | directives { |
||
17 | name |
||
18 | description |
||
19 | args { |
||
20 | ...InputValue |
||
21 | } |
||
22 | onOperation |
||
23 | onFragment |
||
24 | onField |
||
25 | } |
||
26 | } |
||
27 | } |
||
28 | |||
29 | fragment FullType on __Type { |
||
30 | kind |
||
31 | name |
||
32 | description |
||
33 | fields { |
||
34 | name |
||
35 | description |
||
36 | args { |
||
37 | ...InputValue |
||
38 | } |
||
39 | type { |
||
40 | ...TypeRef |
||
41 | } |
||
42 | isDeprecated |
||
43 | deprecationReason |
||
44 | } |
||
45 | inputFields { |
||
46 | ...InputValue |
||
47 | } |
||
48 | interfaces { |
||
49 | ...TypeRef |
||
50 | } |
||
51 | enumValues { |
||
52 | name |
||
53 | description |
||
54 | isDeprecated |
||
55 | deprecationReason |
||
56 | } |
||
57 | possibleTypes { |
||
58 | ...TypeRef |
||
59 | } |
||
60 | } |
||
61 | |||
62 | fragment InputValue on __InputValue { |
||
63 | name |
||
64 | description |
||
65 | type { ...TypeRef } |
||
66 | defaultValue |
||
67 | } |
||
68 | |||
69 | fragment TypeRef on __Type { |
||
70 | kind |
||
71 | name |
||
72 | ofType { |
||
73 | kind |
||
74 | name |
||
75 | ofType { |
||
76 | kind |
||
77 | name |
||
78 | ofType { |
||
79 | kind |
||
80 | name |
||
81 | } |
||
82 | } |
||
83 | } |
||
84 | } |
||
85 | TEXT; |
||
86 | |||
87 | public function testItSetsDeprecationReasonToNullByDefault() |
||
106 | } |