Fix failures
This commit is contained in:
parent
459e44e041
commit
d2f3f19128
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase {
|
|||
}
|
||||
$server = array_merge($server, $vars);
|
||||
$req = new ServerRequest($method, $url, $headers, $body, "1.1", $server);
|
||||
$req = $req->withParsedBody($parsedBody)->withQueryParams($params);
|
||||
if (isset($user)) {
|
||||
if (strlen($user)) {
|
||||
$req = $req->withAttribute("authenticated", true)->withAttribute("authenticatedUser", $user);
|
||||
|
|
Loading…
Reference in a new issue