mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 02:52:44 +08:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
f31fbc5bcf
commit
bc80085ce4
|
@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user