mirror of
https://github.com/filegator/filegator.git
synced 2025-08-13 08:24:22 +02:00
Tests for download headers
This commit is contained in:
@@ -15,6 +15,7 @@ use Filegator\Config\Config;
|
||||
use Filegator\Container\Container;
|
||||
use Filegator\Kernel\Request;
|
||||
use Filegator\Kernel\Response;
|
||||
use Filegator\Kernel\StreamedResponse;
|
||||
use Filegator\Services\Session\Session;
|
||||
use PHPUnit\Framework\TestCase as BaseTestCase;
|
||||
use Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage;
|
||||
@@ -37,6 +38,8 @@ class TestCase extends BaseTestCase
|
||||
|
||||
public $response;
|
||||
|
||||
public $streamedResponse;
|
||||
|
||||
public $previous_session = false;
|
||||
|
||||
protected $auth = false;
|
||||
@@ -74,6 +77,7 @@ class TestCase extends BaseTestCase
|
||||
$app = $this->bootFreshApp(null, $fakeRequest, null, true);
|
||||
|
||||
$this->response = $app->resolve(Response::class);
|
||||
$this->streamedResponse = $app->resolve(StreamedResponse::class);
|
||||
|
||||
return $app;
|
||||
}
|
||||
|
Reference in New Issue
Block a user