We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,108 +23,3 @@ |
||
23 | 23 | public function testNodeInterfaceAndFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - { |
|
27 | - usernames(usernames:["dschafer", "leebyron", "schrockn"]) { |
|
28 | - username |
|
29 | - url |
|
30 | - } |
|
31 | - } |
|
32 | - EOF; |
|
33 | - |
|
34 | - $expectedData = [ |
|
35 | - 'usernames' => [ |
|
36 | - [ |
|
37 | - 'username' => 'dschafer', |
|
38 | - 'url' => 'www.facebook.com/dschafer?lang=en', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'username' => 'leebyron', |
|
42 | - 'url' => 'www.facebook.com/leebyron?lang=en', |
|
43 | - ], |
|
44 | - [ |
|
45 | - 'username' => 'schrockn', |
|
46 | - 'url' => 'www.facebook.com/schrockn?lang=en', |
|
47 | - ], |
|
48 | - ], |
|
49 | - ]; |
|
50 | - |
|
51 | - $this->assertGraphQL($query, $expectedData, null, ['lang' => 'en']); |
|
52 | - } |
|
53 | - |
|
54 | - public function testCorrectlyIntrospects(): void |
|
55 | - { |
|
56 | - $query = <<<'EOF' |
|
57 | - { |
|
58 | - __schema { |
|
59 | - queryType { |
|
60 | - fields { |
|
61 | - name |
|
62 | - args { |
|
63 | - name |
|
64 | - type { |
|
65 | - kind |
|
66 | - ofType { |
|
67 | - kind |
|
68 | - ofType { |
|
69 | - kind |
|
70 | - ofType { |
|
71 | - name |
|
72 | - kind |
|
73 | - } |
|
74 | - } |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - type { |
|
79 | - kind |
|
80 | - ofType { |
|
81 | - name |
|
82 | - kind |
|
83 | - } |
|
84 | - } |
|
85 | - } |
|
86 | - } |
|
87 | - } |
|
88 | - } |
|
89 | - EOF; |
|
90 | - |
|
91 | - $expectedData = [ |
|
92 | - '__schema' => [ |
|
93 | - 'queryType' => [ |
|
94 | - 'fields' => [ |
|
95 | - [ |
|
96 | - 'name' => 'usernames', |
|
97 | - 'args' => [ |
|
98 | - [ |
|
99 | - 'name' => 'usernames', |
|
100 | - 'type' => [ |
|
101 | - 'kind' => 'NON_NULL', |
|
102 | - 'ofType' => [ |
|
103 | - 'kind' => 'LIST', |
|
104 | - 'ofType' => [ |
|
105 | - 'kind' => 'NON_NULL', |
|
106 | - 'ofType' => [ |
|
107 | - 'name' => 'String', |
|
108 | - 'kind' => 'SCALAR', |
|
109 | - ], |
|
110 | - ], |
|
111 | - ], |
|
112 | - ], |
|
113 | - ], |
|
114 | - ], |
|
115 | - 'type' => [ |
|
116 | - 'kind' => 'LIST', |
|
117 | - 'ofType' => [ |
|
118 | - 'name' => 'User', |
|
119 | - 'kind' => 'OBJECT', |
|
120 | - ], |
|
121 | - ], |
|
122 | - ], |
|
123 | - ], |
|
124 | - ], |
|
125 | - ], |
|
126 | - ]; |
|
127 | - |
|
128 | - $this->assertGraphQL($query, $expectedData); |
|
129 | - } |
|
130 | -} |
@@ -23,108 +23,3 @@ |
||
23 | 23 | public function testNodeInterfaceAndFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - { |
|
27 | - usernames(usernames:["dschafer", "leebyron", "schrockn"]) { |
|
28 | - username |
|
29 | - url |
|
30 | - } |
|
31 | - } |
|
32 | - EOF; |
|
33 | - |
|
34 | - $expectedData = [ |
|
35 | - 'usernames' => [ |
|
36 | - [ |
|
37 | - 'username' => 'dschafer', |
|
38 | - 'url' => 'www.facebook.com/dschafer?lang=en', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'username' => 'leebyron', |
|
42 | - 'url' => 'www.facebook.com/leebyron?lang=en', |
|
43 | - ], |
|
44 | - [ |
|
45 | - 'username' => 'schrockn', |
|
46 | - 'url' => 'www.facebook.com/schrockn?lang=en', |
|
47 | - ], |
|
48 | - ], |
|
49 | - ]; |
|
50 | - |
|
51 | - $this->assertGraphQL($query, $expectedData, null, ['lang' => 'en']); |
|
52 | - } |
|
53 | - |
|
54 | - public function testCorrectlyIntrospects(): void |
|
55 | - { |
|
56 | - $query = <<<'EOF' |
|
57 | - { |
|
58 | - __schema { |
|
59 | - queryType { |
|
60 | - fields { |
|
61 | - name |
|
62 | - args { |
|
63 | - name |
|
64 | - type { |
|
65 | - kind |
|
66 | - ofType { |
|
67 | - kind |
|
68 | - ofType { |
|
69 | - kind |
|
70 | - ofType { |
|
71 | - name |
|
72 | - kind |
|
73 | - } |
|
74 | - } |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - type { |
|
79 | - kind |
|
80 | - ofType { |
|
81 | - name |
|
82 | - kind |
|
83 | - } |
|
84 | - } |
|
85 | - } |
|
86 | - } |
|
87 | - } |
|
88 | - } |
|
89 | - EOF; |
|
90 | - |
|
91 | - $expectedData = [ |
|
92 | - '__schema' => [ |
|
93 | - 'queryType' => [ |
|
94 | - 'fields' => [ |
|
95 | - [ |
|
96 | - 'name' => 'usernames', |
|
97 | - 'args' => [ |
|
98 | - [ |
|
99 | - 'name' => 'usernames', |
|
100 | - 'type' => [ |
|
101 | - 'kind' => 'NON_NULL', |
|
102 | - 'ofType' => [ |
|
103 | - 'kind' => 'LIST', |
|
104 | - 'ofType' => [ |
|
105 | - 'kind' => 'NON_NULL', |
|
106 | - 'ofType' => [ |
|
107 | - 'name' => 'String', |
|
108 | - 'kind' => 'SCALAR', |
|
109 | - ], |
|
110 | - ], |
|
111 | - ], |
|
112 | - ], |
|
113 | - ], |
|
114 | - ], |
|
115 | - 'type' => [ |
|
116 | - 'kind' => 'LIST', |
|
117 | - 'ofType' => [ |
|
118 | - 'name' => 'User', |
|
119 | - 'kind' => 'OBJECT', |
|
120 | - ], |
|
121 | - ], |
|
122 | - ], |
|
123 | - ], |
|
124 | - ], |
|
125 | - ], |
|
126 | - ]; |
|
127 | - |
|
128 | - $this->assertGraphQL($query, $expectedData); |
|
129 | - } |
|
130 | -} |
@@ -23,108 +23,3 @@ |
||
23 | 23 | public function testNodeInterfaceAndFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - { |
|
27 | - usernames(usernames:["dschafer", "leebyron", "schrockn"]) { |
|
28 | - username |
|
29 | - url |
|
30 | - } |
|
31 | - } |
|
32 | - EOF; |
|
33 | - |
|
34 | - $expectedData = [ |
|
35 | - 'usernames' => [ |
|
36 | - [ |
|
37 | - 'username' => 'dschafer', |
|
38 | - 'url' => 'www.facebook.com/dschafer?lang=en', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'username' => 'leebyron', |
|
42 | - 'url' => 'www.facebook.com/leebyron?lang=en', |
|
43 | - ], |
|
44 | - [ |
|
45 | - 'username' => 'schrockn', |
|
46 | - 'url' => 'www.facebook.com/schrockn?lang=en', |
|
47 | - ], |
|
48 | - ], |
|
49 | - ]; |
|
50 | - |
|
51 | - $this->assertGraphQL($query, $expectedData, null, ['lang' => 'en']); |
|
52 | - } |
|
53 | - |
|
54 | - public function testCorrectlyIntrospects(): void |
|
55 | - { |
|
56 | - $query = <<<'EOF' |
|
57 | - { |
|
58 | - __schema { |
|
59 | - queryType { |
|
60 | - fields { |
|
61 | - name |
|
62 | - args { |
|
63 | - name |
|
64 | - type { |
|
65 | - kind |
|
66 | - ofType { |
|
67 | - kind |
|
68 | - ofType { |
|
69 | - kind |
|
70 | - ofType { |
|
71 | - name |
|
72 | - kind |
|
73 | - } |
|
74 | - } |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - type { |
|
79 | - kind |
|
80 | - ofType { |
|
81 | - name |
|
82 | - kind |
|
83 | - } |
|
84 | - } |
|
85 | - } |
|
86 | - } |
|
87 | - } |
|
88 | - } |
|
89 | - EOF; |
|
90 | - |
|
91 | - $expectedData = [ |
|
92 | - '__schema' => [ |
|
93 | - 'queryType' => [ |
|
94 | - 'fields' => [ |
|
95 | - [ |
|
96 | - 'name' => 'usernames', |
|
97 | - 'args' => [ |
|
98 | - [ |
|
99 | - 'name' => 'usernames', |
|
100 | - 'type' => [ |
|
101 | - 'kind' => 'NON_NULL', |
|
102 | - 'ofType' => [ |
|
103 | - 'kind' => 'LIST', |
|
104 | - 'ofType' => [ |
|
105 | - 'kind' => 'NON_NULL', |
|
106 | - 'ofType' => [ |
|
107 | - 'name' => 'String', |
|
108 | - 'kind' => 'SCALAR', |
|
109 | - ], |
|
110 | - ], |
|
111 | - ], |
|
112 | - ], |
|
113 | - ], |
|
114 | - ], |
|
115 | - 'type' => [ |
|
116 | - 'kind' => 'LIST', |
|
117 | - 'ofType' => [ |
|
118 | - 'name' => 'User', |
|
119 | - 'kind' => 'OBJECT', |
|
120 | - ], |
|
121 | - ], |
|
122 | - ], |
|
123 | - ], |
|
124 | - ], |
|
125 | - ], |
|
126 | - ]; |
|
127 | - |
|
128 | - $this->assertGraphQL($query, $expectedData); |
|
129 | - } |
|
130 | -} |
@@ -23,108 +23,3 @@ |
||
23 | 23 | public function testNodeInterfaceAndFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - { |
|
27 | - usernames(usernames:["dschafer", "leebyron", "schrockn"]) { |
|
28 | - username |
|
29 | - url |
|
30 | - } |
|
31 | - } |
|
32 | - EOF; |
|
33 | - |
|
34 | - $expectedData = [ |
|
35 | - 'usernames' => [ |
|
36 | - [ |
|
37 | - 'username' => 'dschafer', |
|
38 | - 'url' => 'www.facebook.com/dschafer?lang=en', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'username' => 'leebyron', |
|
42 | - 'url' => 'www.facebook.com/leebyron?lang=en', |
|
43 | - ], |
|
44 | - [ |
|
45 | - 'username' => 'schrockn', |
|
46 | - 'url' => 'www.facebook.com/schrockn?lang=en', |
|
47 | - ], |
|
48 | - ], |
|
49 | - ]; |
|
50 | - |
|
51 | - $this->assertGraphQL($query, $expectedData, null, ['lang' => 'en']); |
|
52 | - } |
|
53 | - |
|
54 | - public function testCorrectlyIntrospects(): void |
|
55 | - { |
|
56 | - $query = <<<'EOF' |
|
57 | - { |
|
58 | - __schema { |
|
59 | - queryType { |
|
60 | - fields { |
|
61 | - name |
|
62 | - args { |
|
63 | - name |
|
64 | - type { |
|
65 | - kind |
|
66 | - ofType { |
|
67 | - kind |
|
68 | - ofType { |
|
69 | - kind |
|
70 | - ofType { |
|
71 | - name |
|
72 | - kind |
|
73 | - } |
|
74 | - } |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - type { |
|
79 | - kind |
|
80 | - ofType { |
|
81 | - name |
|
82 | - kind |
|
83 | - } |
|
84 | - } |
|
85 | - } |
|
86 | - } |
|
87 | - } |
|
88 | - } |
|
89 | - EOF; |
|
90 | - |
|
91 | - $expectedData = [ |
|
92 | - '__schema' => [ |
|
93 | - 'queryType' => [ |
|
94 | - 'fields' => [ |
|
95 | - [ |
|
96 | - 'name' => 'usernames', |
|
97 | - 'args' => [ |
|
98 | - [ |
|
99 | - 'name' => 'usernames', |
|
100 | - 'type' => [ |
|
101 | - 'kind' => 'NON_NULL', |
|
102 | - 'ofType' => [ |
|
103 | - 'kind' => 'LIST', |
|
104 | - 'ofType' => [ |
|
105 | - 'kind' => 'NON_NULL', |
|
106 | - 'ofType' => [ |
|
107 | - 'name' => 'String', |
|
108 | - 'kind' => 'SCALAR', |
|
109 | - ], |
|
110 | - ], |
|
111 | - ], |
|
112 | - ], |
|
113 | - ], |
|
114 | - ], |
|
115 | - 'type' => [ |
|
116 | - 'kind' => 'LIST', |
|
117 | - 'ofType' => [ |
|
118 | - 'name' => 'User', |
|
119 | - 'kind' => 'OBJECT', |
|
120 | - ], |
|
121 | - ], |
|
122 | - ], |
|
123 | - ], |
|
124 | - ], |
|
125 | - ], |
|
126 | - ]; |
|
127 | - |
|
128 | - $this->assertGraphQL($query, $expectedData); |
|
129 | - } |
|
130 | -} |
@@ -23,108 +23,3 @@ |
||
23 | 23 | public function testNodeInterfaceAndFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - { |
|
27 | - usernames(usernames:["dschafer", "leebyron", "schrockn"]) { |
|
28 | - username |
|
29 | - url |
|
30 | - } |
|
31 | - } |
|
32 | - EOF; |
|
33 | - |
|
34 | - $expectedData = [ |
|
35 | - 'usernames' => [ |
|
36 | - [ |
|
37 | - 'username' => 'dschafer', |
|
38 | - 'url' => 'www.facebook.com/dschafer?lang=en', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'username' => 'leebyron', |
|
42 | - 'url' => 'www.facebook.com/leebyron?lang=en', |
|
43 | - ], |
|
44 | - [ |
|
45 | - 'username' => 'schrockn', |
|
46 | - 'url' => 'www.facebook.com/schrockn?lang=en', |
|
47 | - ], |
|
48 | - ], |
|
49 | - ]; |
|
50 | - |
|
51 | - $this->assertGraphQL($query, $expectedData, null, ['lang' => 'en']); |
|
52 | - } |
|
53 | - |
|
54 | - public function testCorrectlyIntrospects(): void |
|
55 | - { |
|
56 | - $query = <<<'EOF' |
|
57 | - { |
|
58 | - __schema { |
|
59 | - queryType { |
|
60 | - fields { |
|
61 | - name |
|
62 | - args { |
|
63 | - name |
|
64 | - type { |
|
65 | - kind |
|
66 | - ofType { |
|
67 | - kind |
|
68 | - ofType { |
|
69 | - kind |
|
70 | - ofType { |
|
71 | - name |
|
72 | - kind |
|
73 | - } |
|
74 | - } |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - type { |
|
79 | - kind |
|
80 | - ofType { |
|
81 | - name |
|
82 | - kind |
|
83 | - } |
|
84 | - } |
|
85 | - } |
|
86 | - } |
|
87 | - } |
|
88 | - } |
|
89 | - EOF; |
|
90 | - |
|
91 | - $expectedData = [ |
|
92 | - '__schema' => [ |
|
93 | - 'queryType' => [ |
|
94 | - 'fields' => [ |
|
95 | - [ |
|
96 | - 'name' => 'usernames', |
|
97 | - 'args' => [ |
|
98 | - [ |
|
99 | - 'name' => 'usernames', |
|
100 | - 'type' => [ |
|
101 | - 'kind' => 'NON_NULL', |
|
102 | - 'ofType' => [ |
|
103 | - 'kind' => 'LIST', |
|
104 | - 'ofType' => [ |
|
105 | - 'kind' => 'NON_NULL', |
|
106 | - 'ofType' => [ |
|
107 | - 'name' => 'String', |
|
108 | - 'kind' => 'SCALAR', |
|
109 | - ], |
|
110 | - ], |
|
111 | - ], |
|
112 | - ], |
|
113 | - ], |
|
114 | - ], |
|
115 | - 'type' => [ |
|
116 | - 'kind' => 'LIST', |
|
117 | - 'ofType' => [ |
|
118 | - 'name' => 'User', |
|
119 | - 'kind' => 'OBJECT', |
|
120 | - ], |
|
121 | - ], |
|
122 | - ], |
|
123 | - ], |
|
124 | - ], |
|
125 | - ], |
|
126 | - ]; |
|
127 | - |
|
128 | - $this->assertGraphQL($query, $expectedData); |
|
129 | - } |
|
130 | -} |
@@ -23,119 +23,3 @@ |
||
23 | 23 | public function testIncludesConnectionAndEdgeFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - query FriendsQuery { |
|
27 | - user { |
|
28 | - friends(first: 2) { |
|
29 | - totalCount |
|
30 | - edges { |
|
31 | - friendshipTime |
|
32 | - node { |
|
33 | - name |
|
34 | - } |
|
35 | - } |
|
36 | - } |
|
37 | - } |
|
38 | - } |
|
39 | - EOF; |
|
40 | - |
|
41 | - $expectedData = [ |
|
42 | - 'user' => [ |
|
43 | - 'friends' => [ |
|
44 | - 'totalCount' => 4, |
|
45 | - 'edges' => [ |
|
46 | - [ |
|
47 | - 'friendshipTime' => 'Yesterday', |
|
48 | - 'node' => [ |
|
49 | - 'name' => 'Nick', |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'friendshipTime' => 'Yesterday', |
|
54 | - 'node' => [ |
|
55 | - 'name' => 'Lee', |
|
56 | - ], |
|
57 | - ], |
|
58 | - ], |
|
59 | - ], |
|
60 | - ], |
|
61 | - ]; |
|
62 | - |
|
63 | - $this->assertGraphQL($query, $expectedData); |
|
64 | - } |
|
65 | - |
|
66 | - public function testWorksWithForwardConnectionArgs(): void |
|
67 | - { |
|
68 | - $query = <<<'EOF' |
|
69 | - query FriendsQuery { |
|
70 | - user { |
|
71 | - friendsForward(first: 2) { |
|
72 | - edges { |
|
73 | - node { |
|
74 | - name |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - } |
|
79 | - } |
|
80 | - EOF; |
|
81 | - |
|
82 | - $expectedData = [ |
|
83 | - 'user' => [ |
|
84 | - 'friendsForward' => [ |
|
85 | - 'edges' => [ |
|
86 | - [ |
|
87 | - 'node' => [ |
|
88 | - 'name' => 'Nick', |
|
89 | - ], |
|
90 | - ], |
|
91 | - [ |
|
92 | - 'node' => [ |
|
93 | - 'name' => 'Lee', |
|
94 | - ], |
|
95 | - ], |
|
96 | - ], |
|
97 | - ], |
|
98 | - ], |
|
99 | - ]; |
|
100 | - |
|
101 | - $this->assertGraphQL($query, $expectedData); |
|
102 | - } |
|
103 | - |
|
104 | - public function testWorksWithBackwardConnectionArgs(): void |
|
105 | - { |
|
106 | - $query = <<<'EOF' |
|
107 | - query FriendsQuery { |
|
108 | - user { |
|
109 | - friendsBackward(last: 2) { |
|
110 | - edges { |
|
111 | - node { |
|
112 | - name |
|
113 | - } |
|
114 | - } |
|
115 | - } |
|
116 | - } |
|
117 | - } |
|
118 | - EOF; |
|
119 | - |
|
120 | - $expectedData = [ |
|
121 | - 'user' => [ |
|
122 | - 'friendsBackward' => [ |
|
123 | - 'edges' => [ |
|
124 | - [ |
|
125 | - 'node' => [ |
|
126 | - 'name' => 'Joe', |
|
127 | - ], |
|
128 | - ], |
|
129 | - [ |
|
130 | - 'node' => [ |
|
131 | - 'name' => 'Tim', |
|
132 | - ], |
|
133 | - ], |
|
134 | - ], |
|
135 | - ], |
|
136 | - ], |
|
137 | - ]; |
|
138 | - |
|
139 | - $this->assertGraphQL($query, $expectedData); |
|
140 | - } |
|
141 | -} |
@@ -23,119 +23,3 @@ |
||
23 | 23 | public function testIncludesConnectionAndEdgeFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - query FriendsQuery { |
|
27 | - user { |
|
28 | - friends(first: 2) { |
|
29 | - totalCount |
|
30 | - edges { |
|
31 | - friendshipTime |
|
32 | - node { |
|
33 | - name |
|
34 | - } |
|
35 | - } |
|
36 | - } |
|
37 | - } |
|
38 | - } |
|
39 | - EOF; |
|
40 | - |
|
41 | - $expectedData = [ |
|
42 | - 'user' => [ |
|
43 | - 'friends' => [ |
|
44 | - 'totalCount' => 4, |
|
45 | - 'edges' => [ |
|
46 | - [ |
|
47 | - 'friendshipTime' => 'Yesterday', |
|
48 | - 'node' => [ |
|
49 | - 'name' => 'Nick', |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'friendshipTime' => 'Yesterday', |
|
54 | - 'node' => [ |
|
55 | - 'name' => 'Lee', |
|
56 | - ], |
|
57 | - ], |
|
58 | - ], |
|
59 | - ], |
|
60 | - ], |
|
61 | - ]; |
|
62 | - |
|
63 | - $this->assertGraphQL($query, $expectedData); |
|
64 | - } |
|
65 | - |
|
66 | - public function testWorksWithForwardConnectionArgs(): void |
|
67 | - { |
|
68 | - $query = <<<'EOF' |
|
69 | - query FriendsQuery { |
|
70 | - user { |
|
71 | - friendsForward(first: 2) { |
|
72 | - edges { |
|
73 | - node { |
|
74 | - name |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - } |
|
79 | - } |
|
80 | - EOF; |
|
81 | - |
|
82 | - $expectedData = [ |
|
83 | - 'user' => [ |
|
84 | - 'friendsForward' => [ |
|
85 | - 'edges' => [ |
|
86 | - [ |
|
87 | - 'node' => [ |
|
88 | - 'name' => 'Nick', |
|
89 | - ], |
|
90 | - ], |
|
91 | - [ |
|
92 | - 'node' => [ |
|
93 | - 'name' => 'Lee', |
|
94 | - ], |
|
95 | - ], |
|
96 | - ], |
|
97 | - ], |
|
98 | - ], |
|
99 | - ]; |
|
100 | - |
|
101 | - $this->assertGraphQL($query, $expectedData); |
|
102 | - } |
|
103 | - |
|
104 | - public function testWorksWithBackwardConnectionArgs(): void |
|
105 | - { |
|
106 | - $query = <<<'EOF' |
|
107 | - query FriendsQuery { |
|
108 | - user { |
|
109 | - friendsBackward(last: 2) { |
|
110 | - edges { |
|
111 | - node { |
|
112 | - name |
|
113 | - } |
|
114 | - } |
|
115 | - } |
|
116 | - } |
|
117 | - } |
|
118 | - EOF; |
|
119 | - |
|
120 | - $expectedData = [ |
|
121 | - 'user' => [ |
|
122 | - 'friendsBackward' => [ |
|
123 | - 'edges' => [ |
|
124 | - [ |
|
125 | - 'node' => [ |
|
126 | - 'name' => 'Joe', |
|
127 | - ], |
|
128 | - ], |
|
129 | - [ |
|
130 | - 'node' => [ |
|
131 | - 'name' => 'Tim', |
|
132 | - ], |
|
133 | - ], |
|
134 | - ], |
|
135 | - ], |
|
136 | - ], |
|
137 | - ]; |
|
138 | - |
|
139 | - $this->assertGraphQL($query, $expectedData); |
|
140 | - } |
|
141 | -} |
@@ -23,119 +23,3 @@ |
||
23 | 23 | public function testIncludesConnectionAndEdgeFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - query FriendsQuery { |
|
27 | - user { |
|
28 | - friends(first: 2) { |
|
29 | - totalCount |
|
30 | - edges { |
|
31 | - friendshipTime |
|
32 | - node { |
|
33 | - name |
|
34 | - } |
|
35 | - } |
|
36 | - } |
|
37 | - } |
|
38 | - } |
|
39 | - EOF; |
|
40 | - |
|
41 | - $expectedData = [ |
|
42 | - 'user' => [ |
|
43 | - 'friends' => [ |
|
44 | - 'totalCount' => 4, |
|
45 | - 'edges' => [ |
|
46 | - [ |
|
47 | - 'friendshipTime' => 'Yesterday', |
|
48 | - 'node' => [ |
|
49 | - 'name' => 'Nick', |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'friendshipTime' => 'Yesterday', |
|
54 | - 'node' => [ |
|
55 | - 'name' => 'Lee', |
|
56 | - ], |
|
57 | - ], |
|
58 | - ], |
|
59 | - ], |
|
60 | - ], |
|
61 | - ]; |
|
62 | - |
|
63 | - $this->assertGraphQL($query, $expectedData); |
|
64 | - } |
|
65 | - |
|
66 | - public function testWorksWithForwardConnectionArgs(): void |
|
67 | - { |
|
68 | - $query = <<<'EOF' |
|
69 | - query FriendsQuery { |
|
70 | - user { |
|
71 | - friendsForward(first: 2) { |
|
72 | - edges { |
|
73 | - node { |
|
74 | - name |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - } |
|
79 | - } |
|
80 | - EOF; |
|
81 | - |
|
82 | - $expectedData = [ |
|
83 | - 'user' => [ |
|
84 | - 'friendsForward' => [ |
|
85 | - 'edges' => [ |
|
86 | - [ |
|
87 | - 'node' => [ |
|
88 | - 'name' => 'Nick', |
|
89 | - ], |
|
90 | - ], |
|
91 | - [ |
|
92 | - 'node' => [ |
|
93 | - 'name' => 'Lee', |
|
94 | - ], |
|
95 | - ], |
|
96 | - ], |
|
97 | - ], |
|
98 | - ], |
|
99 | - ]; |
|
100 | - |
|
101 | - $this->assertGraphQL($query, $expectedData); |
|
102 | - } |
|
103 | - |
|
104 | - public function testWorksWithBackwardConnectionArgs(): void |
|
105 | - { |
|
106 | - $query = <<<'EOF' |
|
107 | - query FriendsQuery { |
|
108 | - user { |
|
109 | - friendsBackward(last: 2) { |
|
110 | - edges { |
|
111 | - node { |
|
112 | - name |
|
113 | - } |
|
114 | - } |
|
115 | - } |
|
116 | - } |
|
117 | - } |
|
118 | - EOF; |
|
119 | - |
|
120 | - $expectedData = [ |
|
121 | - 'user' => [ |
|
122 | - 'friendsBackward' => [ |
|
123 | - 'edges' => [ |
|
124 | - [ |
|
125 | - 'node' => [ |
|
126 | - 'name' => 'Joe', |
|
127 | - ], |
|
128 | - ], |
|
129 | - [ |
|
130 | - 'node' => [ |
|
131 | - 'name' => 'Tim', |
|
132 | - ], |
|
133 | - ], |
|
134 | - ], |
|
135 | - ], |
|
136 | - ], |
|
137 | - ]; |
|
138 | - |
|
139 | - $this->assertGraphQL($query, $expectedData); |
|
140 | - } |
|
141 | -} |
@@ -23,119 +23,3 @@ |
||
23 | 23 | public function testIncludesConnectionAndEdgeFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - query FriendsQuery { |
|
27 | - user { |
|
28 | - friends(first: 2) { |
|
29 | - totalCount |
|
30 | - edges { |
|
31 | - friendshipTime |
|
32 | - node { |
|
33 | - name |
|
34 | - } |
|
35 | - } |
|
36 | - } |
|
37 | - } |
|
38 | - } |
|
39 | - EOF; |
|
40 | - |
|
41 | - $expectedData = [ |
|
42 | - 'user' => [ |
|
43 | - 'friends' => [ |
|
44 | - 'totalCount' => 4, |
|
45 | - 'edges' => [ |
|
46 | - [ |
|
47 | - 'friendshipTime' => 'Yesterday', |
|
48 | - 'node' => [ |
|
49 | - 'name' => 'Nick', |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'friendshipTime' => 'Yesterday', |
|
54 | - 'node' => [ |
|
55 | - 'name' => 'Lee', |
|
56 | - ], |
|
57 | - ], |
|
58 | - ], |
|
59 | - ], |
|
60 | - ], |
|
61 | - ]; |
|
62 | - |
|
63 | - $this->assertGraphQL($query, $expectedData); |
|
64 | - } |
|
65 | - |
|
66 | - public function testWorksWithForwardConnectionArgs(): void |
|
67 | - { |
|
68 | - $query = <<<'EOF' |
|
69 | - query FriendsQuery { |
|
70 | - user { |
|
71 | - friendsForward(first: 2) { |
|
72 | - edges { |
|
73 | - node { |
|
74 | - name |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - } |
|
79 | - } |
|
80 | - EOF; |
|
81 | - |
|
82 | - $expectedData = [ |
|
83 | - 'user' => [ |
|
84 | - 'friendsForward' => [ |
|
85 | - 'edges' => [ |
|
86 | - [ |
|
87 | - 'node' => [ |
|
88 | - 'name' => 'Nick', |
|
89 | - ], |
|
90 | - ], |
|
91 | - [ |
|
92 | - 'node' => [ |
|
93 | - 'name' => 'Lee', |
|
94 | - ], |
|
95 | - ], |
|
96 | - ], |
|
97 | - ], |
|
98 | - ], |
|
99 | - ]; |
|
100 | - |
|
101 | - $this->assertGraphQL($query, $expectedData); |
|
102 | - } |
|
103 | - |
|
104 | - public function testWorksWithBackwardConnectionArgs(): void |
|
105 | - { |
|
106 | - $query = <<<'EOF' |
|
107 | - query FriendsQuery { |
|
108 | - user { |
|
109 | - friendsBackward(last: 2) { |
|
110 | - edges { |
|
111 | - node { |
|
112 | - name |
|
113 | - } |
|
114 | - } |
|
115 | - } |
|
116 | - } |
|
117 | - } |
|
118 | - EOF; |
|
119 | - |
|
120 | - $expectedData = [ |
|
121 | - 'user' => [ |
|
122 | - 'friendsBackward' => [ |
|
123 | - 'edges' => [ |
|
124 | - [ |
|
125 | - 'node' => [ |
|
126 | - 'name' => 'Joe', |
|
127 | - ], |
|
128 | - ], |
|
129 | - [ |
|
130 | - 'node' => [ |
|
131 | - 'name' => 'Tim', |
|
132 | - ], |
|
133 | - ], |
|
134 | - ], |
|
135 | - ], |
|
136 | - ], |
|
137 | - ]; |
|
138 | - |
|
139 | - $this->assertGraphQL($query, $expectedData); |
|
140 | - } |
|
141 | -} |
@@ -23,119 +23,3 @@ |
||
23 | 23 | public function testIncludesConnectionAndEdgeFields(): void |
24 | 24 | { |
25 | 25 | $query = <<<'EOF' |
26 | - query FriendsQuery { |
|
27 | - user { |
|
28 | - friends(first: 2) { |
|
29 | - totalCount |
|
30 | - edges { |
|
31 | - friendshipTime |
|
32 | - node { |
|
33 | - name |
|
34 | - } |
|
35 | - } |
|
36 | - } |
|
37 | - } |
|
38 | - } |
|
39 | - EOF; |
|
40 | - |
|
41 | - $expectedData = [ |
|
42 | - 'user' => [ |
|
43 | - 'friends' => [ |
|
44 | - 'totalCount' => 4, |
|
45 | - 'edges' => [ |
|
46 | - [ |
|
47 | - 'friendshipTime' => 'Yesterday', |
|
48 | - 'node' => [ |
|
49 | - 'name' => 'Nick', |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'friendshipTime' => 'Yesterday', |
|
54 | - 'node' => [ |
|
55 | - 'name' => 'Lee', |
|
56 | - ], |
|
57 | - ], |
|
58 | - ], |
|
59 | - ], |
|
60 | - ], |
|
61 | - ]; |
|
62 | - |
|
63 | - $this->assertGraphQL($query, $expectedData); |
|
64 | - } |
|
65 | - |
|
66 | - public function testWorksWithForwardConnectionArgs(): void |
|
67 | - { |
|
68 | - $query = <<<'EOF' |
|
69 | - query FriendsQuery { |
|
70 | - user { |
|
71 | - friendsForward(first: 2) { |
|
72 | - edges { |
|
73 | - node { |
|
74 | - name |
|
75 | - } |
|
76 | - } |
|
77 | - } |
|
78 | - } |
|
79 | - } |
|
80 | - EOF; |
|
81 | - |
|
82 | - $expectedData = [ |
|
83 | - 'user' => [ |
|
84 | - 'friendsForward' => [ |
|
85 | - 'edges' => [ |
|
86 | - [ |
|
87 | - 'node' => [ |
|
88 | - 'name' => 'Nick', |
|
89 | - ], |
|
90 | - ], |
|
91 | - [ |
|
92 | - 'node' => [ |
|
93 | - 'name' => 'Lee', |
|
94 | - ], |
|
95 | - ], |
|
96 | - ], |
|
97 | - ], |
|
98 | - ], |
|
99 | - ]; |
|
100 | - |
|
101 | - $this->assertGraphQL($query, $expectedData); |
|
102 | - } |
|
103 | - |
|
104 | - public function testWorksWithBackwardConnectionArgs(): void |
|
105 | - { |
|
106 | - $query = <<<'EOF' |
|
107 | - query FriendsQuery { |
|
108 | - user { |
|
109 | - friendsBackward(last: 2) { |
|
110 | - edges { |
|
111 | - node { |
|
112 | - name |
|
113 | - } |
|
114 | - } |
|
115 | - } |
|
116 | - } |
|
117 | - } |
|
118 | - EOF; |
|
119 | - |
|
120 | - $expectedData = [ |
|
121 | - 'user' => [ |
|
122 | - 'friendsBackward' => [ |
|
123 | - 'edges' => [ |
|
124 | - [ |
|
125 | - 'node' => [ |
|
126 | - 'name' => 'Joe', |
|
127 | - ], |
|
128 | - ], |
|
129 | - [ |
|
130 | - 'node' => [ |
|
131 | - 'name' => 'Tim', |
|
132 | - ], |
|
133 | - ], |
|
134 | - ], |
|
135 | - ], |
|
136 | - ], |
|
137 | - ]; |
|
138 | - |
|
139 | - $this->assertGraphQL($query, $expectedData); |
|
140 | - } |
|
141 | -} |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function testSpecialField($fieldName, Type $typeWithSpecialField, callable $fieldValueRetriever = null, $strict = true): void |
33 | 33 | { |
34 | 34 | if (null === $fieldValueRetriever) { |
35 | - $fieldValueRetriever = fn (Type $type, $fieldName) => $type->config[$fieldName]; |
|
35 | + $fieldValueRetriever = fn(Type $type, $fieldName) => $type->config[$fieldName]; |
|
36 | 36 | } |
37 | 37 | $expected = static function (): void { |
38 | 38 | }; |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | ]; |
66 | 66 | }, |
67 | 67 | ]); |
68 | - $barResolver = static fn () => 'bar'; |
|
69 | - $bazResolver = static fn () => 'baz'; |
|
68 | + $barResolver = static fn() => 'bar'; |
|
69 | + $bazResolver = static fn() => 'baz'; |
|
70 | 70 | |
71 | 71 | $this->decorate( |
72 | 72 | [$objectType->name => $objectType], |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | [$objectType->name => $objectType], |
100 | 100 | [ |
101 | 101 | $objectType->name => [ |
102 | - 'bar' => fn ($value, $args) => $args, |
|
102 | + 'bar' => fn($value, $args) => $args, |
|
103 | 103 | ], |
104 | 104 | ] |
105 | 105 | ); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | [ |
249 | 249 | ResolverMapInterface::RESOLVE_FIELD, |
250 | 250 | $objectWithResolveField, |
251 | - fn (ObjectType $type) => $type->resolveFieldFn, |
|
251 | + fn(ObjectType $type) => $type->resolveFieldFn, |
|
252 | 252 | false, |
253 | 253 | ], |
254 | 254 | [ResolverMapInterface::RESOLVE_FIELD, $objectWithResolveField, null, false], |
@@ -18,8 +18,8 @@ |
||
18 | 18 | protected function getResolverSolutionsMapping(): array |
19 | 19 | { |
20 | 20 | return [ |
21 | - 'Toto' => ['factory' => fn () => $this->createObjectType(['name' => 'Toto']), 'aliases' => ['foo']], |
|
22 | - 'Tata' => ['factory' => fn () => $this->createObjectType(['name' => 'Tata']), 'aliases' => ['bar']], |
|
21 | + 'Toto' => ['factory' => fn() => $this->createObjectType(['name' => 'Toto']), 'aliases' => ['foo']], |
|
22 | + 'Tata' => ['factory' => fn() => $this->createObjectType(['name' => 'Tata']), 'aliases' => ['bar']], |
|
23 | 23 | ]; |
24 | 24 | } |
25 | 25 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | public function getPrivatePropertyWithoutGetterUsingCallBack(): Closure |
34 | 34 | { |
35 | - return fn () => $this->privatePropertyWithoutGetter; |
|
35 | + return fn() => $this->privatePropertyWithoutGetter; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function resolve(): array |
@@ -97,7 +97,7 @@ |
||
97 | 97 | // @phpstan-ignore-next-line |
98 | 98 | $mock = $this->createMock($className); |
99 | 99 | $mock->method('getDocComment') |
100 | - ->willReturn(sprintf('/** @%s %s **/', $this->reflectors[$className], $type)); |
|
100 | + ->willReturn(sprintf('/** @%s %s **/', $this->reflectors[$className], $type)); |
|
101 | 101 | |
102 | 102 | /** @var ReflectionProperty|ReflectionMethod $mock */ |
103 | 103 | return $mock; |
@@ -261,7 +261,7 @@ |
||
261 | 261 | public function testUnionAutoguessed(): void |
262 | 262 | { |
263 | 263 | $this->expect('Killable', 'union', [ |
264 | - 'types' => ['Hero', 'Mandalorian', 'Sith'], |
|
264 | + 'types' => ['Hero', 'Mandalorian', 'Sith'], |
|
265 | 265 | 'resolveType' => '@=value.getType()', |
266 | 266 | ]); |
267 | 267 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | - return array_filter($config, fn ($item) => !is_array($item) || !empty($item)); |
|
38 | + return array_filter($config, fn($item) => !is_array($item) || !empty($item)); |
|
39 | 39 | } |
40 | 40 | } |
@@ -81,6 +81,4 @@ |
||
81 | 81 | $reactAdapter->convertThenable($promise); |
82 | 82 | |
83 | 83 | $this->assertInstanceOf(Promise::class, $promise); |
84 | - $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise); // @phpstan-ignore-line |
|
85 | - } |
|
86 | -} |
|
84 | + $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise |
|
87 | 85 | \ No newline at end of file |
@@ -81,6 +81,4 @@ |
||
81 | 81 | $reactAdapter->convertThenable($promise); |
82 | 82 | |
83 | 83 | $this->assertInstanceOf(Promise::class, $promise); |
84 | - $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise); // @phpstan-ignore-line |
|
85 | - } |
|
86 | -} |
|
84 | + $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise |
|
87 | 85 | \ No newline at end of file |
@@ -81,6 +81,4 @@ |
||
81 | 81 | $reactAdapter->convertThenable($promise); |
82 | 82 | |
83 | 83 | $this->assertInstanceOf(Promise::class, $promise); |
84 | - $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise); // @phpstan-ignore-line |
|
85 | - } |
|
86 | -} |
|
84 | + $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise |
|
87 | 85 | \ No newline at end of file |
@@ -81,6 +81,4 @@ |
||
81 | 81 | $reactAdapter->convertThenable($promise); |
82 | 82 | |
83 | 83 | $this->assertInstanceOf(Promise::class, $promise); |
84 | - $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise); // @phpstan-ignore-line |
|
85 | - } |
|
86 | -} |
|
84 | + $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise |
|
87 | 85 | \ No newline at end of file |
@@ -81,6 +81,4 @@ |
||
81 | 81 | $reactAdapter->convertThenable($promise); |
82 | 82 | |
83 | 83 | $this->assertInstanceOf(Promise::class, $promise); |
84 | - $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise); // @phpstan-ignore-line |
|
85 | - } |
|
86 | -} |
|
84 | + $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise |
|
87 | 85 | \ No newline at end of file |