Apply two new middlewares
This commit is contained in:
parent
c3934702e0
commit
148b6f6cc5
|
|
@ -15,6 +15,8 @@ class Kernel extends HttpKernel
|
|||
*/
|
||||
protected $middleware = [
|
||||
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
||||
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
|
||||
\App\Http\Middleware\DetectLanguagePrefer::class,
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class SetupControllerTest extends TestCase
|
|||
|
||||
public function testReportDatabaseConnectionError()
|
||||
{
|
||||
$this->post('/setup/database', ['type' => 'sqlite', 'host' => '', 'db' => 'test'])
|
||||
$this->post('/setup/database', ['type' => 'sqlite', 'host' => 'placeholder', 'db' => 'test'])
|
||||
->assertSee(trans('setup.database.connection-error', [
|
||||
'type' => 'SQLite',
|
||||
'msg' => 'Database (test) does not exist.'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user