File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public function testCreateAction()
1818 $ this ->assertFileDoesNotExist ($ path );
1919
2020 $ this ->artisan ('make:migration:action ' , compact ('name ' ))->run ();
21+ $ this ->await ();
2122
2223 $ this ->assertFileExists ($ path );
2324 }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public function testMakingFiles()
1717 $ this ->assertFileDoesNotExist ($ path );
1818
1919 $ this ->artisan ('make:migration:action ' , compact ('name ' ))->run ();
20+ $ this ->await ();
2021
2122 $ this ->assertFileExists ($ path );
2223
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Tests \Concerns ;
4+
5+ trait Sleepable
6+ {
7+ protected function await (): void
8+ {
9+ usleep (100 );
10+ }
11+ }
Original file line number Diff line number Diff line change 1010use Tests \Concerns \Database ;
1111use Tests \Concerns \Files ;
1212use Tests \Concerns \Settings ;
13+ use Tests \Concerns \Sleepable ;
1314
1415abstract class TestCase extends BaseTestCase
1516{
@@ -18,6 +19,7 @@ abstract class TestCase extends BaseTestCase
1819 use Files;
1920 use RefreshDatabase;
2021 use Settings;
22+ use Sleepable;
2123
2224 protected function setUp (): void
2325 {
You can’t perform that action at this time.
0 commit comments