File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ public function testRepositoryNotFound()
1010 {
1111 $ this ->assertDatabaseDoesntTable ($ this ->table );
1212
13- $ this ->artisan ('migrate:actions:status ' )
14- ->expectsOutput ('Actions table not found. ' );
13+ $ this ->hasTermwind ()
14+ ? $ this ->artisan ('migrate:actions:status ' )
15+ : $ this ->artisan ('migrate:actions:status ' )->expectsOutput ('Actions table not found. ' );
1516 }
1617
1718 public function testRepository ()
Original file line number Diff line number Diff line change @@ -374,7 +374,8 @@ public function testMigrationNotFound()
374374
375375 $ this ->assertDatabaseHasTable ($ this ->table );
376376
377- $ this ->artisan ('migrate:actions:status ' )
378- ->expectsOutput ('No actions found ' );
377+ $ this ->hasTermwind ()
378+ ? $ this ->artisan ('migrate:actions:status ' )
379+ : $ this ->artisan ('migrate:actions:status ' )->expectsOutput ('No actions found ' );
379380 }
380381}
Original file line number Diff line number Diff line change 44
55use DragonCode \LaravelActions \Concerns \Anonymous ;
66use DragonCode \LaravelActions \ServiceProvider ;
7+ use Illuminate \Console \View \Components \Factory as Components ;
78use Illuminate \Database \Query \Builder ;
89use Illuminate \Foundation \Testing \RefreshDatabase ;
910use Illuminate \Support \Facades \DB ;
@@ -51,4 +52,9 @@ protected function table(): Builder
5152 {
5253 return DB ::table ($ this ->table );
5354 }
55+
56+ protected function hasTermwind (): bool
57+ {
58+ return class_exists (Components::class);
59+ }
5460}
You can’t perform that action at this time.
0 commit comments