mirror of
https://github.com/filegator/filegator.git
synced 2025-08-29 11:20:34 +02:00
Added configurable lockout for incorrect login attempts (see configuration_sample.php)
This commit is contained in:
@@ -52,7 +52,7 @@ class TestCase extends BaseTestCase
|
||||
return new App($config, $request, new FakeResponse(), new FakeStreamedResponse(), new Container());
|
||||
}
|
||||
|
||||
public function sendRequest($method, $uri, $data = null, $files = [])
|
||||
public function sendRequest($method, $uri, $data = null, $files = [], $server = [])
|
||||
{
|
||||
$fakeRequest = Request::create(
|
||||
'?r='.$uri,
|
||||
@@ -60,10 +60,10 @@ class TestCase extends BaseTestCase
|
||||
[],
|
||||
[],
|
||||
$files,
|
||||
[
|
||||
array_replace([
|
||||
'CONTENT_TYPE' => 'application/json',
|
||||
'HTTP_ACCEPT' => 'application/json',
|
||||
],
|
||||
], $server),
|
||||
json_encode($data)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user