File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 44
55namespace PhpCollective \LaravelDto \Test ;
66
7+ use Illuminate \Support \Facades \Artisan ;
78use Orchestra \Testbench \TestCase ;
89use PhpCollective \LaravelDto \DtoServiceProvider ;
910
@@ -38,6 +39,8 @@ public function testConfigIsMerged(): void
3839
3940 public function testCommandIsRegistered (): void
4041 {
41- $ this ->assertTrue ($ this ->app ['artisan ' ]->has ('dto:generate ' ));
42+ $ commands = Artisan::all ();
43+
44+ $ this ->assertArrayHasKey ('dto:generate ' , $ commands );
4245 }
4346}
Original file line number Diff line number Diff line change 44
55namespace PhpCollective \LaravelDto \Test ;
66
7+ use Illuminate \Support \Facades \Artisan ;
78use Orchestra \Testbench \TestCase ;
89use PhpCollective \LaravelDto \DtoServiceProvider ;
910
@@ -66,7 +67,9 @@ protected function defineEnvironment($app): void
6667
6768 public function testCommandExists (): void
6869 {
69- $ this ->assertTrue ($ this ->app ['artisan ' ]->has ('dto:generate ' ));
70+ $ commands = Artisan::all ();
71+
72+ $ this ->assertArrayHasKey ('dto:generate ' , $ commands );
7073 }
7174
7275 public function testCommandWithDryRun (): void
You can’t perform that action at this time.
0 commit comments