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