Skip to content

Commit 41496fd

Browse files
authored
Carry --force to make:test for generators with --test (#57777)
1 parent 1d5fa56 commit 41496fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Console/Concerns/CreatesMatchingTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ protected function handleTestCreation($path)
4040
'name' => (new Stringable($path))->after($this->laravel['path'])->beforeLast('.php')->append('Test')->replace('\\', '/'),
4141
'--pest' => $this->option('pest'),
4242
'--phpunit' => $this->option('phpunit'),
43+
'--force' => $this->hasOption('force') && $this->option('force'),
4344
]) == 0;
4445
}
4546
}

0 commit comments

Comments
 (0)