File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1414*/
1515
1616pest ()->extend (\Tests \TestCase::class)
17- ->use (\Illuminate \Foundation \Testing \RefreshDatabase ::class)
17+ ->use (\Illuminate \Foundation \Testing \LazilyRefreshDatabase ::class)
1818 ->in ('Feature ' );
1919
20+ pest ()->extend (\Tests \TestCase::class)
21+ ->use (\Illuminate \Foundation \Testing \LazilyRefreshDatabase::class)
22+ ->in ('Unit ' );
23+
2024/*
2125|--------------------------------------------------------------------------
2226| Expectations
Original file line number Diff line number Diff line change 55namespace Tests ;
66
77use Illuminate \Foundation \Testing \TestCase as BaseTestCase ;
8+ use Illuminate \Support \Facades \Config ;
89
910abstract class TestCase extends BaseTestCase
1011{
11- //
12+ protected function setUp (): void
13+ {
14+ parent ::setUp ();
15+
16+ $ this ->withoutVite (); // Fake Vite for tests - for GH Actions
17+
18+ Config::set ('filesystems.disks.public.root ' , storage_path ('app/public_test ' ));
19+ Config::set ('filesystems.disks.local.root ' , storage_path ('app/private_test ' ));
20+ }
1221}
You can’t perform that action at this time.
0 commit comments