Tests for download headers

This commit is contained in:
Milos Stojanovic
2020-03-08 17:20:54 +01:00
parent 2cfa7d7615
commit 1fa1c38212
2 changed files with 32 additions and 4 deletions

View File

@@ -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;
}