diff --git a/tests/Etc/AddUserCommand.php b/tests/Etc/AddUserCommand.php new file mode 100644 index 00000000..a270d158 --- /dev/null +++ b/tests/Etc/AddUserCommand.php @@ -0,0 +1,38 @@ + Str::random(10), + 'email' => Str::random(10) . '@gmail.com', + 'email_verified_at' => now(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'remember_token' => Str::random(10), + ]); + } +} diff --git a/tests/Etc/ConsoleKernel.php b/tests/Etc/ConsoleKernel.php index a801b9dc..1bc66365 100644 --- a/tests/Etc/ConsoleKernel.php +++ b/tests/Etc/ConsoleKernel.php @@ -15,5 +15,6 @@ class ConsoleKernel extends Kernel */ protected $commands = [ ExampleCommand::class, + AddUserCommand::class, ]; }