Fix $extraHeaders support
This commit is contained in:
parent
9ee17e3a8d
commit
49df5fa285
1 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,10 @@ abstract class AbstractRoutesTestCase extends AbstractBaseTestCase
|
|||
$request = $request->withHeader('Content-Type', 'application/json');
|
||||
}
|
||||
|
||||
foreach($extraHeaders as $key => $value){
|
||||
$request = $request->withHeader($key, $value);
|
||||
}
|
||||
|
||||
return $this->slimApp->handle($request);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue