From de6f0ed176d8ccb5f2b3e6c18658b75f8a80d69b Mon Sep 17 00:00:00 2001 From: miladev-ent <98118400+milwad-dev@users.noreply.github.com> Date: Sun, 4 Feb 2024 20:53:21 +0330 Subject: [PATCH] wip --- tests/MakeCrudTest.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/MakeCrudTest.php b/tests/MakeCrudTest.php index 988f289..176df1a 100644 --- a/tests/MakeCrudTest.php +++ b/tests/MakeCrudTest.php @@ -114,7 +114,6 @@ public function check_to_create_files_with_command_crud_make_with_option_factory $this->checkAllToMigrationIsCreatedWithOriginalName(); $this->checkAllToControllerIsCreatedWithOriginalName(); $this->checkAllToRequestIsCreatedWithOriginalName(); -// $this->checkAllToFactoryIsCreatedWithOriginalName(); TODO $this->checkAllToViewIsCreatedWithOriginalName($this->name); } @@ -150,13 +149,24 @@ public function check_to_create_files_with_command_crud_make_with_ies_name_with_ $this->name = 'Category'; $this->artisan($this->command, ['name' => $this->name]) ->expectsQuestion($this->question, 0) + ->expectsQuestion($this->question, 1) + ->expectsQuestion($this->question, 2) + ->expectsQuestion($this->question, 3) + ->expectsQuestion($this->question, 4) + ->expectsQuestion($this->question, 5) ->expectsOutputToContain('created successfully'); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToControllerIsCreatedWithOriginalName(); $this->checkAllToRequestIsCreatedWithOriginalName(); -// $this->checkAllToSeederIsCreatedWithOriginalName(); $this->checkAllToViewIsCreatedWithOriginalName('Category'); $this->checkAllToMigrationIsCreatedWithOriginalName(); + + // Options Checks + $this->checkAllToSeederIsCreatedWithOriginalName(); + $this->checkAllToFactoryIsCreatedWithOriginalName(); + $this->checkAllToRepositoryIsCreatedWithOriginalName(); + $this->checkAllToServiceIsCreatedWithOriginalName(); + $this->checkAllToTestsIsCreatedWithOriginalName(); } }