Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Franz Liedke 2020-03-20 17:28:58 +00:00 committed by StyleCI Bot
parent 2b0bc2865d
commit a70acdf9cb

View File

@ -159,21 +159,24 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
// Do we want a JSON request body? // Do we want a JSON request body?
if (isset($options['json'])) { if (isset($options['json'])) {
$request = $this->requestWithJsonBody( $request = $this->requestWithJsonBody(
$request, $options['json'] $request,
$options['json']
); );
} }
// Authenticate as a given user // Authenticate as a given user
if (isset($options['authenticatedAs'])) { if (isset($options['authenticatedAs'])) {
$request = $this->requestAsUser( $request = $this->requestAsUser(
$request, $options['authenticatedAs'] $request,
$options['authenticatedAs']
); );
} }
// Let's copy the cookies from a previous response // Let's copy the cookies from a previous response
if (isset($options['cookiesFrom'])) { if (isset($options['cookiesFrom'])) {
$request = $this->requestWithCookiesFrom( $request = $this->requestWithCookiesFrom(
$request, $options['cookiesFrom'] $request,
$options['cookiesFrom']
); );
} }