mirror of
https://github.com/notf0und/SGS
synced 2026-07-17 18:21:06 +00:00
0993bfa666
Fixes #3: Error on DBI when files or folders contains special characters. ### Additional changes * Added unit and feature tests * Fix file size display * Run tests on CI/CD * Publish docker image on release
14 lines
384 B
PHP
14 lines
384 B
PHP
<?php
|
|
|
|
test('a request with a theme header on the web root redirects to the tinfoil route', function () {
|
|
$response = $this->get('/', ['HTTP_THEME' => 'default']);
|
|
|
|
$response->assertRedirect(route('tinfoil'));
|
|
});
|
|
|
|
test('a request without a theme header on the web root is not redirected', function () {
|
|
$response = $this->get('/');
|
|
|
|
$response->assertStatus(200);
|
|
});
|