Skip to content

Commit

Permalink
Pass uploaded files configured with configRequest() to ServerRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Dec 21, 2018
1 parent 0be30d0 commit 7497365
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/TestSuite/IntegrationTestTrait.php
Expand Up @@ -621,7 +621,8 @@ protected function _buildRequest($url, $method, $data)
$props = [
'url' => $url,
'session' => $session,
'query' => $queryData
'query' => $queryData,
'files' => [],
];
if (is_string($data)) {
$props['input'] = $data;
Expand Down
3 changes: 2 additions & 1 deletion src/TestSuite/MiddlewareDispatcher.php
Expand Up @@ -153,7 +153,8 @@ protected function _createRequest($spec)
$environment,
$spec['query'],
$spec['post'],
$spec['cookies']
$spec['cookies'],
$spec['files']
);
$request = $request->withAttribute('session', $spec['session']);

Expand Down

0 comments on commit 7497365

Please sign in to comment.