@@ -82,13 +82,19 @@
Loading
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,13 +79,19 @@
Loading
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%
1
coverage:
2
  status:
3
    project:
4
      default:
5
        only_pulls: true
6
comment: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading