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