Skip to content

Commit

Permalink
[11.x] Display test creation messages (#51546)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshiro authored May 23, 2024
1 parent 0b17465 commit 40ebbed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Concerns/CreatesMatchingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function handleTestCreation($path)
return false;
}

return $this->callSilent('make:test', [
return $this->call('make:test', [
'name' => Str::of($path)->after($this->laravel['path'])->beforeLast('.php')->append('Test')->replace('\\', '/'),
'--pest' => $this->option('pest'),
'--phpunit' => $this->option('phpunit'),
Expand Down
4 changes: 1 addition & 3 deletions src/Illuminate/Console/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ public function handle()
$info = $this->type;

if (in_array(CreatesMatchingTest::class, class_uses_recursive($this))) {
if ($this->handleTestCreation($path)) {
$info .= ' and test';
}
$this->handleTestCreation($path);
}

if (windows_os()) {
Expand Down

0 comments on commit 40ebbed

Please sign in to comment.