From 40ebbeda850cf821aca42f4e1b2dd50780d8a621 Mon Sep 17 00:00:00 2001 From: Noboru Shiroiwa <14008307+nshiro@users.noreply.github.com> Date: Fri, 24 May 2024 03:39:38 +0900 Subject: [PATCH] [11.x] Display test creation messages (#51546) --- src/Illuminate/Console/Concerns/CreatesMatchingTest.php | 2 +- src/Illuminate/Console/GeneratorCommand.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Console/Concerns/CreatesMatchingTest.php b/src/Illuminate/Console/Concerns/CreatesMatchingTest.php index b36a8c5ca566..bea0afd04476 100644 --- a/src/Illuminate/Console/Concerns/CreatesMatchingTest.php +++ b/src/Illuminate/Console/Concerns/CreatesMatchingTest.php @@ -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'), diff --git a/src/Illuminate/Console/GeneratorCommand.php b/src/Illuminate/Console/GeneratorCommand.php index 1dc5ed792ee2..67b34ce8697b 100644 --- a/src/Illuminate/Console/GeneratorCommand.php +++ b/src/Illuminate/Console/GeneratorCommand.php @@ -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()) {