Skip to content

Commit

Permalink
Ensure app base controller is always scaffolded.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Nov 23, 2024
1 parent 6b1582e commit 00f9eeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ protected function setupTestApplication()
File::copyDirectory($folder, app_path(basename($folder)));
}

File::ensureDirectoryExists(app_path('Http/Controllers'));
File::copy(__DIR__.'/.skeleton/app/Http/Controllers/Controller.php', app_path('Http/Controllers/Controller.php'));

File::copyDirectory(__DIR__.'/.skeleton/database', base_path('database'));
File::copyDirectory(__DIR__.'/.skeleton/src', base_path('src'));
File::copy(__DIR__.'/.skeleton/bootstrap/providers.php', base_path('bootstrap/providers.php'));
Expand Down

0 comments on commit 00f9eeb

Please sign in to comment.