src/Testing/MakesGraphQLRequests.php
changed.
Other files ignored by Codecov
tests/Integration/FileUploadTest.php
has changed.
CHANGELOG.md
has changed.
docs/master/testing/phpunit.md
has changed.
82 | 82 | * This is used for file uploads conforming to the specification: |
|
83 | 83 | * https://github.com/jaydenseric/graphql-multipart-request-spec |
|
84 | 84 | * |
|
85 | - | * @param array<string, mixed> $parameters |
|
86 | - | * @param array<int, \Illuminate\Http\Testing\File> $files |
|
85 | + | * @param array<string, mixed>|array<int, array<string, mixed>> $operations |
|
86 | + | * @param array<int|string, array<int, string>> $map |
|
87 | + | * @param array<int|string, \Illuminate\Http\Testing\File>|array<int|string, array> $files |
|
87 | 88 | * @param array<string, string> $headers Will be merged with Content-Type: multipart/form-data |
|
88 | 89 | * @return $this |
|
89 | 90 | */ |
|
90 | - | protected function multipartGraphQL(array $parameters, array $files, array $headers = []): self |
|
91 | + | protected function multipartGraphQL(array $operations, array $map, array $files, array $headers = []) |
|
91 | 92 | { |
|
93 | + | $parameters = [ |
|
94 | + | 'operations' => json_encode($operations), |
|
95 | + | 'map' => json_encode($map), |
|
96 | + | ]; |
|
97 | + | ||
92 | 98 | $this->call( |
|
93 | 99 | 'POST', |
|
94 | 100 | $this->graphQLEndpointUrl(), |
79 | 79 | * This is used for file uploads conforming to the specification: |
|
80 | 80 | * https://github.com/jaydenseric/graphql-multipart-request-spec |
|
81 | 81 | * |
|
82 | - | * @param array<string, mixed> $parameters |
|
83 | - | * @param array<int, \Illuminate\Http\Testing\File> $files |
|
82 | + | * @param array<string, mixed>|array<int, array<string, mixed>> $operations |
|
83 | + | * @param array<int|string, array<int, string>> $map |
|
84 | + | * @param array<int|string, \Illuminate\Http\Testing\File>|array<int|string, array> $files |
|
84 | 85 | * @param array<string, string> $headers Will be merged with Content-Type: multipart/form-data |
|
85 | 86 | * @return \Illuminate\Testing\TestResponse |
|
86 | 87 | */ |
|
87 | - | protected function multipartGraphQL(array $parameters, array $files, array $headers = []) |
|
88 | + | protected function multipartGraphQL(array $operations, array $map, array $files, array $headers = []) |
|
88 | 89 | { |
|
90 | + | $parameters = [ |
|
91 | + | 'operations' => json_encode($operations), |
|
92 | + | 'map' => json_encode($map), |
|
93 | + | ]; |
|
94 | + | ||
89 | 95 | return $this->call( |
|
90 | 96 | 'POST', |
|
91 | 97 | $this->graphQLEndpointUrl(), |
Files | Complexity | Coverage |
---|---|---|
src | 1,409 | 88.12% |
Project Totals (234 files) | 1409 | 88.12% |