From cc2667a984121263ebbe1f302fcf9b45ce1e2be9 Mon Sep 17 00:00:00 2001 From: Devon Mather Date: Sat, 21 Mar 2020 00:33:07 +0100 Subject: [PATCH] Add command for test --- tests/Etc/AddUserCommand.php | 38 ++++++++++++++++++++++++++++++++++++ tests/Etc/ConsoleKernel.php | 1 + 2 files changed, 39 insertions(+) create mode 100644 tests/Etc/AddUserCommand.php 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, ]; }