1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Fix failures

This commit is contained in:
J. King 2022-08-06 16:16:18 -04:00
parent 459e44e041
commit d2f3f19128

View file

@ -112,6 +112,7 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase {
} }
$server = array_merge($server, $vars); $server = array_merge($server, $vars);
$req = new ServerRequest($method, $url, $headers, $body, "1.1", $server); $req = new ServerRequest($method, $url, $headers, $body, "1.1", $server);
$req = $req->withParsedBody($parsedBody)->withQueryParams($params);
if (isset($user)) { if (isset($user)) {
if (strlen($user)) { if (strlen($user)) {
$req = $req->withAttribute("authenticated", true)->withAttribute("authenticatedUser", $user); $req = $req->withAttribute("authenticated", true)->withAttribute("authenticatedUser", $user);