From e4df7c1263f25eabab523a267af5a19f39ed7e97 Mon Sep 17 00:00:00 2001 From: Milwad Date: Sun, 14 Apr 2024 17:40:33 +0330 Subject: [PATCH] Update MakeCrudTest.php --- tests/MakeCrudTest.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/MakeCrudTest.php b/tests/MakeCrudTest.php index d2e4643..b969bcc 100644 --- a/tests/MakeCrudTest.php +++ b/tests/MakeCrudTest.php @@ -37,7 +37,8 @@ public function test_check_to_create_files_with_command_crud_make() public function test_check_to_create_files_with_command_crud_make_with_option_seeder() { $this->artisan($this->command, ['name' => $this->name]) - ->expectsQuestion($this->question, 0); + ->expectsQuestion($this->question, 0) + ->assertFailed(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -58,7 +59,8 @@ public function test_check_to_create_files_with_command_crud_make_with_option_se public function test_check_to_create_files_with_command_crud_make_with_option_service() { $this->artisan($this->command, ['name' => $this->name]) - ->expectsQuestion($this->question, 3); + ->expectsQuestion($this->question, 3) + ->assertFailed(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -76,7 +78,8 @@ public function test_check_to_create_files_with_command_crud_make_with_option_se public function test_check_to_create_files_with_command_crud_make_with_option_repository() { $this->artisan($this->command, ['name' => $this->name]) - ->expectsQuestion($this->question, 3); + ->expectsQuestion($this->question, 3) + ->assertFailed(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -94,7 +97,8 @@ public function test_check_to_create_files_with_command_crud_make_with_option_re public function test_check_to_create_files_with_command_crud_make_with_option_factory() { $this->artisan($this->command, ['name' => $this->name]) - ->expectsQuestion($this->question, 1); + ->expectsQuestion($this->question, 1) + ->assertFailed(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -135,7 +139,8 @@ public function test_check_to_create_files_with_command_crud_make_with_ies_name_ // ->expectsQuestion($this->question, 2) // ->expectsQuestion($this->question, 3) // ->expectsQuestion($this->question, 4) - ->expectsQuestion($this->question, 5); + ->expectsQuestion($this->question, 5) + ->assertFailed(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToControllerIsCreatedWithOriginalName();