mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
Alexander Skvortsov
parent
30450687b9
commit
21f4c3f6dd
@@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user