We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -148,6 +148,6 @@ |
||
148 | 148 | $data = &$entries['__schema'][$entryKey]; |
149 | 149 | } |
150 | 150 | |
151 | - usort($data, fn ($data1, $data2) => strcmp($data1[$sortBy], $data2[$sortBy])); |
|
151 | + usort($data, fn($data1, $data2) => strcmp($data1[$sortBy], $data2[$sortBy])); |
|
152 | 152 | } |
153 | 153 | } |
@@ -67,33 +67,3 @@ |
||
67 | 67 | private function displayExpected(bool $isVerbose = false): string |
68 | 68 | { |
69 | 69 | $display = <<<'OUTPUT' |
70 | - Types compilation starts |
|
71 | - Types compilation ends successfully |
|
72 | - |
|
73 | - OUTPUT; |
|
74 | - |
|
75 | - if ($isVerbose) { |
|
76 | - $display .= <<<'OUTPUT' |
|
77 | - |
|
78 | - Summary |
|
79 | - ======= |
|
80 | - |
|
81 | - \-[\-]+\s+\-[\-]+\s |
|
82 | - class\s+path\s* |
|
83 | - \-[\-]+\s+\-[\-]+\s |
|
84 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType {{PATH}}/QueryType\.php |
|
85 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType {{PATH}}/UserType\.php |
|
86 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType {{PATH}}/friendConnectionType\.php |
|
87 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType {{PATH}}/userConnectionType\.php |
|
88 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType {{PATH}}/PageInfoType\.php |
|
89 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType {{PATH}}/friendEdgeType\.php |
|
90 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType {{PATH}}/userEdgeType\.php |
|
91 | - \-[\-]+\s+\-[\-]+\s |
|
92 | - OUTPUT; |
|
93 | - |
|
94 | - $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display); |
|
95 | - } |
|
96 | - |
|
97 | - return str_replace("\n", PHP_EOL, $display); |
|
98 | - } |
|
99 | -} |
@@ -67,33 +67,3 @@ |
||
67 | 67 | private function displayExpected(bool $isVerbose = false): string |
68 | 68 | { |
69 | 69 | $display = <<<'OUTPUT' |
70 | - Types compilation starts |
|
71 | - Types compilation ends successfully |
|
72 | - |
|
73 | - OUTPUT; |
|
74 | - |
|
75 | - if ($isVerbose) { |
|
76 | - $display .= <<<'OUTPUT' |
|
77 | - |
|
78 | - Summary |
|
79 | - ======= |
|
80 | - |
|
81 | - \-[\-]+\s+\-[\-]+\s |
|
82 | - class\s+path\s* |
|
83 | - \-[\-]+\s+\-[\-]+\s |
|
84 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType {{PATH}}/QueryType\.php |
|
85 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType {{PATH}}/UserType\.php |
|
86 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType {{PATH}}/friendConnectionType\.php |
|
87 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType {{PATH}}/userConnectionType\.php |
|
88 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType {{PATH}}/PageInfoType\.php |
|
89 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType {{PATH}}/friendEdgeType\.php |
|
90 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType {{PATH}}/userEdgeType\.php |
|
91 | - \-[\-]+\s+\-[\-]+\s |
|
92 | - OUTPUT; |
|
93 | - |
|
94 | - $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display); |
|
95 | - } |
|
96 | - |
|
97 | - return str_replace("\n", PHP_EOL, $display); |
|
98 | - } |
|
99 | -} |
@@ -67,33 +67,3 @@ |
||
67 | 67 | private function displayExpected(bool $isVerbose = false): string |
68 | 68 | { |
69 | 69 | $display = <<<'OUTPUT' |
70 | - Types compilation starts |
|
71 | - Types compilation ends successfully |
|
72 | - |
|
73 | - OUTPUT; |
|
74 | - |
|
75 | - if ($isVerbose) { |
|
76 | - $display .= <<<'OUTPUT' |
|
77 | - |
|
78 | - Summary |
|
79 | - ======= |
|
80 | - |
|
81 | - \-[\-]+\s+\-[\-]+\s |
|
82 | - class\s+path\s* |
|
83 | - \-[\-]+\s+\-[\-]+\s |
|
84 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType {{PATH}}/QueryType\.php |
|
85 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType {{PATH}}/UserType\.php |
|
86 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType {{PATH}}/friendConnectionType\.php |
|
87 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType {{PATH}}/userConnectionType\.php |
|
88 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType {{PATH}}/PageInfoType\.php |
|
89 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType {{PATH}}/friendEdgeType\.php |
|
90 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType {{PATH}}/userEdgeType\.php |
|
91 | - \-[\-]+\s+\-[\-]+\s |
|
92 | - OUTPUT; |
|
93 | - |
|
94 | - $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display); |
|
95 | - } |
|
96 | - |
|
97 | - return str_replace("\n", PHP_EOL, $display); |
|
98 | - } |
|
99 | -} |
@@ -67,33 +67,3 @@ |
||
67 | 67 | private function displayExpected(bool $isVerbose = false): string |
68 | 68 | { |
69 | 69 | $display = <<<'OUTPUT' |
70 | - Types compilation starts |
|
71 | - Types compilation ends successfully |
|
72 | - |
|
73 | - OUTPUT; |
|
74 | - |
|
75 | - if ($isVerbose) { |
|
76 | - $display .= <<<'OUTPUT' |
|
77 | - |
|
78 | - Summary |
|
79 | - ======= |
|
80 | - |
|
81 | - \-[\-]+\s+\-[\-]+\s |
|
82 | - class\s+path\s* |
|
83 | - \-[\-]+\s+\-[\-]+\s |
|
84 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType {{PATH}}/QueryType\.php |
|
85 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType {{PATH}}/UserType\.php |
|
86 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType {{PATH}}/friendConnectionType\.php |
|
87 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType {{PATH}}/userConnectionType\.php |
|
88 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType {{PATH}}/PageInfoType\.php |
|
89 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType {{PATH}}/friendEdgeType\.php |
|
90 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType {{PATH}}/userEdgeType\.php |
|
91 | - \-[\-]+\s+\-[\-]+\s |
|
92 | - OUTPUT; |
|
93 | - |
|
94 | - $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display); |
|
95 | - } |
|
96 | - |
|
97 | - return str_replace("\n", PHP_EOL, $display); |
|
98 | - } |
|
99 | -} |
@@ -67,33 +67,3 @@ |
||
67 | 67 | private function displayExpected(bool $isVerbose = false): string |
68 | 68 | { |
69 | 69 | $display = <<<'OUTPUT' |
70 | - Types compilation starts |
|
71 | - Types compilation ends successfully |
|
72 | - |
|
73 | - OUTPUT; |
|
74 | - |
|
75 | - if ($isVerbose) { |
|
76 | - $display .= <<<'OUTPUT' |
|
77 | - |
|
78 | - Summary |
|
79 | - ======= |
|
80 | - |
|
81 | - \-[\-]+\s+\-[\-]+\s |
|
82 | - class\s+path\s* |
|
83 | - \-[\-]+\s+\-[\-]+\s |
|
84 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\QueryType {{PATH}}/QueryType\.php |
|
85 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\UserType {{PATH}}/UserType\.php |
|
86 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendConnectionType {{PATH}}/friendConnectionType\.php |
|
87 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userConnectionType {{PATH}}/userConnectionType\.php |
|
88 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\PageInfoType {{PATH}}/PageInfoType\.php |
|
89 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\friendEdgeType {{PATH}}/friendEdgeType\.php |
|
90 | - Overblog\\GraphQLBundle\\Connection\\__DEFINITIONS__\\userEdgeType {{PATH}}/userEdgeType\.php |
|
91 | - \-[\-]+\s+\-[\-]+\s |
|
92 | - OUTPUT; |
|
93 | - |
|
94 | - $display = str_replace('{{PATH}}', preg_quote($this->cacheDir), $display); |
|
95 | - } |
|
96 | - |
|
97 | - return str_replace("\n", PHP_EOL, $display); |
|
98 | - } |
|
99 | -} |
@@ -158,7 +158,7 @@ |
||
158 | 158 | return call_user_func([ExpressionFunction::class, 'fromPhp'], $phpFunctionName); |
159 | 159 | } |
160 | 160 | |
161 | - return new ExpressionFunction($phpFunctionName, fn () => ( |
|
161 | + return new ExpressionFunction($phpFunctionName, fn() => ( |
|
162 | 162 | sprintf('\%s(%s)', $phpFunctionName, implode(', ', func_get_args())) |
163 | 163 | ), function (): void {}); |
164 | 164 | } |
@@ -123,6 +123,6 @@ |
||
123 | 123 | |
124 | 124 | private static function findByType(string $type): array |
125 | 125 | { |
126 | - return array_filter(self::$characters, fn ($character) => $type === $character['type']); |
|
126 | + return array_filter(self::$characters, fn($character) => $type === $character['type']); |
|
127 | 127 | } |
128 | 128 | } |
@@ -49,17 +49,17 @@ discard block |
||
49 | 49 | |
50 | 50 | public function friendsResolver(array $user, ArgumentInterface $args): GraphQLPromise |
51 | 51 | { |
52 | - return $this->promiseAdapter->create(fn (callable $resolve) => $resolve((new ConnectionBuilder())->connectionFromArray($user['friends'], $args))); |
|
52 | + return $this->promiseAdapter->create(fn(callable $resolve) => $resolve((new ConnectionBuilder())->connectionFromArray($user['friends'], $args))); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function resolveNode(Edge $edge): GraphQLPromise |
56 | 56 | { |
57 | - return $this->promiseAdapter->create(fn (callable $resolve) => $resolve(isset($this->allUsers[$edge->getNode()]) ? $this->allUsers[$edge->getNode()] : null)); |
|
57 | + return $this->promiseAdapter->create(fn(callable $resolve) => $resolve(isset($this->allUsers[$edge->getNode()]) ? $this->allUsers[$edge->getNode()] : null)); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | public function resolveConnection(): GraphQLPromise |
61 | 61 | { |
62 | - return $this->promiseAdapter->create(fn (callable $resolve) => $resolve(count($this->allUsers) - 1)); |
|
62 | + return $this->promiseAdapter->create(fn(callable $resolve) => $resolve(count($this->allUsers) - 1)); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | public function resolveQuery() |
69 | 69 | { |
70 | 70 | if ($this->promiseAdapter instanceof SyncPromiseAdapter) { |
71 | - return new Deferred(fn () => $this->allUsers[0]); |
|
71 | + return new Deferred(fn() => $this->allUsers[0]); |
|
72 | 72 | } elseif ($this->promiseAdapter instanceof ReactPromiseAdapter) { |
73 | - return new ReactPromise(fn (callable $resolve) => $resolve($this->allUsers[0])); |
|
73 | + return new ReactPromise(fn(callable $resolve) => $resolve($this->allUsers[0])); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | return $this->allUsers[0]; |
@@ -22,13 +22,13 @@ discard block |
||
22 | 22 | 'findHumansByDateOfBirth' => function ($value, Argument $args) { |
23 | 23 | $years = $args['years']; |
24 | 24 | |
25 | - return array_filter(Characters::getHumans(), fn ($human) => in_array($human['dateOfBirth'], $years)); |
|
25 | + return array_filter(Characters::getHumans(), fn($human) => in_array($human['dateOfBirth'], $years)); |
|
26 | 26 | }, |
27 | 27 | 'humans' => [Characters::class, 'getHumans'], |
28 | 28 | 'direwolves' => [Characters::class, 'getDirewolves'], |
29 | 29 | ], |
30 | 30 | 'Character' => [ |
31 | - self::RESOLVE_TYPE => fn ($value) => Characters::TYPE_HUMAN === $value['type'] ? 'Human' : 'Direwolf', |
|
31 | + self::RESOLVE_TYPE => fn($value) => Characters::TYPE_HUMAN === $value['type'] ? 'Human' : 'Direwolf', |
|
32 | 32 | ], |
33 | 33 | 'Human' => [ |
34 | 34 | 'direwolf' => function ($value) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ], |
48 | 48 | // custom scalar |
49 | 49 | 'Year' => [ |
50 | - self::SCALAR_TYPE => fn () => new YearScalarType(), |
|
50 | + self::SCALAR_TYPE => fn() => new YearScalarType(), |
|
51 | 51 | ], |
52 | 52 | ]; |
53 | 53 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | 'args' => [ |
24 | 24 | 'message' => ['type' => Type::string()], |
25 | 25 | ], |
26 | - 'resolve' => fn ($root, $args) => $resolver->resolve([sprintf('%s::display', EchoQuery::class), [$args['message']]]), |
|
26 | + 'resolve' => fn($root, $args) => $resolver->resolve([sprintf('%s::display', EchoQuery::class), [$args['message']]]), |
|
27 | 27 | ], |
28 | 28 | ], |
29 | 29 | ]); |
@@ -281,6 +281,4 @@ |
||
281 | 281 | ], |
282 | 282 | ]; |
283 | 283 | |
284 | - $this->assertGraphQL($query, $expectedData); |
|
285 | - } |
|
286 | -} |
|
284 | + $this->assertGraphQL($query, $expectedData |
|
287 | 285 | \ No newline at end of file |
@@ -281,6 +281,4 @@ |
||
281 | 281 | ], |
282 | 282 | ]; |
283 | 283 | |
284 | - $this->assertGraphQL($query, $expectedData); |
|
285 | - } |
|
286 | -} |
|
284 | + $this->assertGraphQL($query, $expectedData |
|
287 | 285 | \ No newline at end of file |
@@ -281,6 +281,4 @@ |
||
281 | 281 | ], |
282 | 282 | ]; |
283 | 283 | |
284 | - $this->assertGraphQL($query, $expectedData); |
|
285 | - } |
|
286 | -} |
|
284 | + $this->assertGraphQL($query, $expectedData |
|
287 | 285 | \ No newline at end of file |
@@ -281,6 +281,4 @@ |
||
281 | 281 | ], |
282 | 282 | ]; |
283 | 283 | |
284 | - $this->assertGraphQL($query, $expectedData); |
|
285 | - } |
|
286 | -} |
|
284 | + $this->assertGraphQL($query, $expectedData |
|
287 | 285 | \ No newline at end of file |
@@ -281,6 +281,4 @@ |
||
281 | 281 | ], |
282 | 282 | ]; |
283 | 283 | |
284 | - $this->assertGraphQL($query, $expectedData); |
|
285 | - } |
|
286 | -} |
|
284 | + $this->assertGraphQL($query, $expectedData |
|
287 | 285 | \ No newline at end of file |
@@ -22,81 +22,3 @@ |
||
22 | 22 | public function testGlobalIdFields(): void |
23 | 23 | { |
24 | 24 | $query = <<<'EOF' |
25 | - { |
|
26 | - allObjects { |
|
27 | - id |
|
28 | - } |
|
29 | - } |
|
30 | - EOF; |
|
31 | - |
|
32 | - $expectedData = [ |
|
33 | - 'allObjects' => [ |
|
34 | - [ |
|
35 | - 'id' => 'VXNlcjox', |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'id' => 'VXNlcjoy', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'id' => 'UGhvdG86MQ==', |
|
42 | - ], |
|
43 | - [ |
|
44 | - 'id' => 'UGhvdG86Mg==', |
|
45 | - ], |
|
46 | - [ |
|
47 | - 'id' => 'UG9zdDox', |
|
48 | - ], |
|
49 | - [ |
|
50 | - 'id' => 'UG9zdDoy', |
|
51 | - ], |
|
52 | - ], |
|
53 | - ]; |
|
54 | - |
|
55 | - $this->assertGraphQL($query, $expectedData); |
|
56 | - } |
|
57 | - |
|
58 | - public function testReFetchesTheIds(): void |
|
59 | - { |
|
60 | - $query = <<<'EOF' |
|
61 | - { |
|
62 | - user: node(id: "VXNlcjox") { |
|
63 | - id |
|
64 | - ... on User { |
|
65 | - name |
|
66 | - } |
|
67 | - }, |
|
68 | - photo: node(id: "UGhvdG86MQ==") { |
|
69 | - id |
|
70 | - ... on Photo { |
|
71 | - width |
|
72 | - } |
|
73 | - }, |
|
74 | - post: node(id: "UG9zdDox") { |
|
75 | - id |
|
76 | - ... on Post { |
|
77 | - text |
|
78 | - status |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
82 | - EOF; |
|
83 | - |
|
84 | - $expectedData = [ |
|
85 | - 'user' => [ |
|
86 | - 'id' => 'VXNlcjox', |
|
87 | - 'name' => 'John Doe', |
|
88 | - ], |
|
89 | - 'photo' => [ |
|
90 | - 'id' => 'UGhvdG86MQ==', |
|
91 | - 'width' => 300, |
|
92 | - ], |
|
93 | - 'post' => [ |
|
94 | - 'id' => 'UG9zdDox', |
|
95 | - 'text' => 'lorem', |
|
96 | - 'status' => 'DRAFT', |
|
97 | - ], |
|
98 | - ]; |
|
99 | - |
|
100 | - $this->assertGraphQL($query, $expectedData); |
|
101 | - } |
|
102 | -} |
@@ -22,81 +22,3 @@ |
||
22 | 22 | public function testGlobalIdFields(): void |
23 | 23 | { |
24 | 24 | $query = <<<'EOF' |
25 | - { |
|
26 | - allObjects { |
|
27 | - id |
|
28 | - } |
|
29 | - } |
|
30 | - EOF; |
|
31 | - |
|
32 | - $expectedData = [ |
|
33 | - 'allObjects' => [ |
|
34 | - [ |
|
35 | - 'id' => 'VXNlcjox', |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'id' => 'VXNlcjoy', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'id' => 'UGhvdG86MQ==', |
|
42 | - ], |
|
43 | - [ |
|
44 | - 'id' => 'UGhvdG86Mg==', |
|
45 | - ], |
|
46 | - [ |
|
47 | - 'id' => 'UG9zdDox', |
|
48 | - ], |
|
49 | - [ |
|
50 | - 'id' => 'UG9zdDoy', |
|
51 | - ], |
|
52 | - ], |
|
53 | - ]; |
|
54 | - |
|
55 | - $this->assertGraphQL($query, $expectedData); |
|
56 | - } |
|
57 | - |
|
58 | - public function testReFetchesTheIds(): void |
|
59 | - { |
|
60 | - $query = <<<'EOF' |
|
61 | - { |
|
62 | - user: node(id: "VXNlcjox") { |
|
63 | - id |
|
64 | - ... on User { |
|
65 | - name |
|
66 | - } |
|
67 | - }, |
|
68 | - photo: node(id: "UGhvdG86MQ==") { |
|
69 | - id |
|
70 | - ... on Photo { |
|
71 | - width |
|
72 | - } |
|
73 | - }, |
|
74 | - post: node(id: "UG9zdDox") { |
|
75 | - id |
|
76 | - ... on Post { |
|
77 | - text |
|
78 | - status |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
82 | - EOF; |
|
83 | - |
|
84 | - $expectedData = [ |
|
85 | - 'user' => [ |
|
86 | - 'id' => 'VXNlcjox', |
|
87 | - 'name' => 'John Doe', |
|
88 | - ], |
|
89 | - 'photo' => [ |
|
90 | - 'id' => 'UGhvdG86MQ==', |
|
91 | - 'width' => 300, |
|
92 | - ], |
|
93 | - 'post' => [ |
|
94 | - 'id' => 'UG9zdDox', |
|
95 | - 'text' => 'lorem', |
|
96 | - 'status' => 'DRAFT', |
|
97 | - ], |
|
98 | - ]; |
|
99 | - |
|
100 | - $this->assertGraphQL($query, $expectedData); |
|
101 | - } |
|
102 | -} |
@@ -22,81 +22,3 @@ |
||
22 | 22 | public function testGlobalIdFields(): void |
23 | 23 | { |
24 | 24 | $query = <<<'EOF' |
25 | - { |
|
26 | - allObjects { |
|
27 | - id |
|
28 | - } |
|
29 | - } |
|
30 | - EOF; |
|
31 | - |
|
32 | - $expectedData = [ |
|
33 | - 'allObjects' => [ |
|
34 | - [ |
|
35 | - 'id' => 'VXNlcjox', |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'id' => 'VXNlcjoy', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'id' => 'UGhvdG86MQ==', |
|
42 | - ], |
|
43 | - [ |
|
44 | - 'id' => 'UGhvdG86Mg==', |
|
45 | - ], |
|
46 | - [ |
|
47 | - 'id' => 'UG9zdDox', |
|
48 | - ], |
|
49 | - [ |
|
50 | - 'id' => 'UG9zdDoy', |
|
51 | - ], |
|
52 | - ], |
|
53 | - ]; |
|
54 | - |
|
55 | - $this->assertGraphQL($query, $expectedData); |
|
56 | - } |
|
57 | - |
|
58 | - public function testReFetchesTheIds(): void |
|
59 | - { |
|
60 | - $query = <<<'EOF' |
|
61 | - { |
|
62 | - user: node(id: "VXNlcjox") { |
|
63 | - id |
|
64 | - ... on User { |
|
65 | - name |
|
66 | - } |
|
67 | - }, |
|
68 | - photo: node(id: "UGhvdG86MQ==") { |
|
69 | - id |
|
70 | - ... on Photo { |
|
71 | - width |
|
72 | - } |
|
73 | - }, |
|
74 | - post: node(id: "UG9zdDox") { |
|
75 | - id |
|
76 | - ... on Post { |
|
77 | - text |
|
78 | - status |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
82 | - EOF; |
|
83 | - |
|
84 | - $expectedData = [ |
|
85 | - 'user' => [ |
|
86 | - 'id' => 'VXNlcjox', |
|
87 | - 'name' => 'John Doe', |
|
88 | - ], |
|
89 | - 'photo' => [ |
|
90 | - 'id' => 'UGhvdG86MQ==', |
|
91 | - 'width' => 300, |
|
92 | - ], |
|
93 | - 'post' => [ |
|
94 | - 'id' => 'UG9zdDox', |
|
95 | - 'text' => 'lorem', |
|
96 | - 'status' => 'DRAFT', |
|
97 | - ], |
|
98 | - ]; |
|
99 | - |
|
100 | - $this->assertGraphQL($query, $expectedData); |
|
101 | - } |
|
102 | -} |
@@ -22,81 +22,3 @@ |
||
22 | 22 | public function testGlobalIdFields(): void |
23 | 23 | { |
24 | 24 | $query = <<<'EOF' |
25 | - { |
|
26 | - allObjects { |
|
27 | - id |
|
28 | - } |
|
29 | - } |
|
30 | - EOF; |
|
31 | - |
|
32 | - $expectedData = [ |
|
33 | - 'allObjects' => [ |
|
34 | - [ |
|
35 | - 'id' => 'VXNlcjox', |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'id' => 'VXNlcjoy', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'id' => 'UGhvdG86MQ==', |
|
42 | - ], |
|
43 | - [ |
|
44 | - 'id' => 'UGhvdG86Mg==', |
|
45 | - ], |
|
46 | - [ |
|
47 | - 'id' => 'UG9zdDox', |
|
48 | - ], |
|
49 | - [ |
|
50 | - 'id' => 'UG9zdDoy', |
|
51 | - ], |
|
52 | - ], |
|
53 | - ]; |
|
54 | - |
|
55 | - $this->assertGraphQL($query, $expectedData); |
|
56 | - } |
|
57 | - |
|
58 | - public function testReFetchesTheIds(): void |
|
59 | - { |
|
60 | - $query = <<<'EOF' |
|
61 | - { |
|
62 | - user: node(id: "VXNlcjox") { |
|
63 | - id |
|
64 | - ... on User { |
|
65 | - name |
|
66 | - } |
|
67 | - }, |
|
68 | - photo: node(id: "UGhvdG86MQ==") { |
|
69 | - id |
|
70 | - ... on Photo { |
|
71 | - width |
|
72 | - } |
|
73 | - }, |
|
74 | - post: node(id: "UG9zdDox") { |
|
75 | - id |
|
76 | - ... on Post { |
|
77 | - text |
|
78 | - status |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
82 | - EOF; |
|
83 | - |
|
84 | - $expectedData = [ |
|
85 | - 'user' => [ |
|
86 | - 'id' => 'VXNlcjox', |
|
87 | - 'name' => 'John Doe', |
|
88 | - ], |
|
89 | - 'photo' => [ |
|
90 | - 'id' => 'UGhvdG86MQ==', |
|
91 | - 'width' => 300, |
|
92 | - ], |
|
93 | - 'post' => [ |
|
94 | - 'id' => 'UG9zdDox', |
|
95 | - 'text' => 'lorem', |
|
96 | - 'status' => 'DRAFT', |
|
97 | - ], |
|
98 | - ]; |
|
99 | - |
|
100 | - $this->assertGraphQL($query, $expectedData); |
|
101 | - } |
|
102 | -} |
@@ -22,81 +22,3 @@ |
||
22 | 22 | public function testGlobalIdFields(): void |
23 | 23 | { |
24 | 24 | $query = <<<'EOF' |
25 | - { |
|
26 | - allObjects { |
|
27 | - id |
|
28 | - } |
|
29 | - } |
|
30 | - EOF; |
|
31 | - |
|
32 | - $expectedData = [ |
|
33 | - 'allObjects' => [ |
|
34 | - [ |
|
35 | - 'id' => 'VXNlcjox', |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'id' => 'VXNlcjoy', |
|
39 | - ], |
|
40 | - [ |
|
41 | - 'id' => 'UGhvdG86MQ==', |
|
42 | - ], |
|
43 | - [ |
|
44 | - 'id' => 'UGhvdG86Mg==', |
|
45 | - ], |
|
46 | - [ |
|
47 | - 'id' => 'UG9zdDox', |
|
48 | - ], |
|
49 | - [ |
|
50 | - 'id' => 'UG9zdDoy', |
|
51 | - ], |
|
52 | - ], |
|
53 | - ]; |
|
54 | - |
|
55 | - $this->assertGraphQL($query, $expectedData); |
|
56 | - } |
|
57 | - |
|
58 | - public function testReFetchesTheIds(): void |
|
59 | - { |
|
60 | - $query = <<<'EOF' |
|
61 | - { |
|
62 | - user: node(id: "VXNlcjox") { |
|
63 | - id |
|
64 | - ... on User { |
|
65 | - name |
|
66 | - } |
|
67 | - }, |
|
68 | - photo: node(id: "UGhvdG86MQ==") { |
|
69 | - id |
|
70 | - ... on Photo { |
|
71 | - width |
|
72 | - } |
|
73 | - }, |
|
74 | - post: node(id: "UG9zdDox") { |
|
75 | - id |
|
76 | - ... on Post { |
|
77 | - text |
|
78 | - status |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
82 | - EOF; |
|
83 | - |
|
84 | - $expectedData = [ |
|
85 | - 'user' => [ |
|
86 | - 'id' => 'VXNlcjox', |
|
87 | - 'name' => 'John Doe', |
|
88 | - ], |
|
89 | - 'photo' => [ |
|
90 | - 'id' => 'UGhvdG86MQ==', |
|
91 | - 'width' => 300, |
|
92 | - ], |
|
93 | - 'post' => [ |
|
94 | - 'id' => 'UG9zdDox', |
|
95 | - 'text' => 'lorem', |
|
96 | - 'status' => 'DRAFT', |
|
97 | - ], |
|
98 | - ]; |
|
99 | - |
|
100 | - $this->assertGraphQL($query, $expectedData); |
|
101 | - } |
|
102 | -} |