From 14d5206adaefa43929809903e92b20b8986e5330 Mon Sep 17 00:00:00 2001 From: Jason McCreary Date: Thu, 7 Sep 2023 19:35:25 -0400 Subject: [PATCH] Include default test when generating all --- src/Illuminate/Foundation/Console/ModelMakeCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Foundation/Console/ModelMakeCommand.php b/src/Illuminate/Foundation/Console/ModelMakeCommand.php index b4a44dda701f..9f3702137f58 100644 --- a/src/Illuminate/Foundation/Console/ModelMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ModelMakeCommand.php @@ -56,6 +56,7 @@ public function handle() $this->input->setOption('controller', true); $this->input->setOption('policy', true); $this->input->setOption('resource', true); + $this->input->setOption('test', ! $this->option('pest')); } if ($this->option('factory')) {