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()
10
10
{
11
11
$ this ->assertDatabaseDoesntTable ($ this ->table );
12
12
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. ' );
15
16
}
16
17
17
18
public function testRepository ()
Original file line number Diff line number Diff line change @@ -374,7 +374,8 @@ public function testMigrationNotFound()
374
374
375
375
$ this ->assertDatabaseHasTable ($ this ->table );
376
376
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 ' );
379
380
}
380
381
}
Original file line number Diff line number Diff line change 4
4
5
5
use DragonCode \LaravelActions \Concerns \Anonymous ;
6
6
use DragonCode \LaravelActions \ServiceProvider ;
7
+ use Illuminate \Console \View \Components \Factory as Components ;
7
8
use Illuminate \Database \Query \Builder ;
8
9
use Illuminate \Foundation \Testing \RefreshDatabase ;
9
10
use Illuminate \Support \Facades \DB ;
@@ -51,4 +52,9 @@ protected function table(): Builder
51
52
{
52
53
return DB ::table ($ this ->table );
53
54
}
55
+
56
+ protected function hasTermwind (): bool
57
+ {
58
+ return class_exists (Components::class);
59
+ }
54
60
}
You can’t perform that action at this time.
0 commit comments