Skip to content

Commit 6cdf4e0

Browse files
authored
Merge pull request #3486 from CoalaJoe/patch-1
Add files to test client
2 parents dc461fc + 3d28753 commit 6cdf4e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Bridge/Symfony/Bundle/Test/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ final class Client implements HttpClientInterface
4444
'body' => '',
4545
'json' => null,
4646
'base_uri' => 'http://example.com',
47+
'extra' => [],
4748
];
4849

4950
private $kernelBrowser;
@@ -121,7 +122,7 @@ public function request(string $method, string $url, array $options = []): Respo
121122
'url' => $resolvedUrl,
122123
'primary_port' => 'http:' === $url['scheme'] ? 80 : 443,
123124
];
124-
$this->kernelBrowser->request($method, $resolvedUrl, [], [], $server, $options['body'] ?? null);
125+
$this->kernelBrowser->request($method, $resolvedUrl, $options['extra']['parameters'] ?? [], $options['extra']['files'] ?? [], $server, $options['body'] ?? null);
125126

126127
return $this->response = new Response($this->kernelBrowser->getResponse(), $this->kernelBrowser->getInternalResponse(), $info);
127128
}

0 commit comments

Comments
 (0)