From e5ace4053fe1f52c97e80b01cc4753de53f98b9b Mon Sep 17 00:00:00 2001 From: Milwad Date: Sun, 14 Apr 2024 17:37:27 +0330 Subject: [PATCH] Update MakeCrudTest.php --- tests/MakeCrudTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/MakeCrudTest.php b/tests/MakeCrudTest.php index 55b3aae..41b8d6f 100644 --- a/tests/MakeCrudTest.php +++ b/tests/MakeCrudTest.php @@ -38,7 +38,7 @@ public function test_check_to_create_files_with_command_crud_make_with_option_se { $this->artisan($this->command, ['name' => $this->name]) ->expectsQuestion($this->question, 0) - ->expectsOutputToContain('created successfully'); + ->assertSuccessful(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -60,7 +60,7 @@ public function test_check_to_create_files_with_command_crud_make_with_option_se { $this->artisan($this->command, ['name' => $this->name]) ->expectsQuestion($this->question, 3) - ->expectsOutputToContain('created successfully'); + ->assertSuccessful(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -79,7 +79,7 @@ public function test_check_to_create_files_with_command_crud_make_with_option_re { $this->artisan($this->command, ['name' => $this->name]) ->expectsQuestion($this->question, 3) - ->expectsOutputToContain('created successfully'); + ->assertSuccessful(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -98,7 +98,7 @@ public function test_check_to_create_files_with_command_crud_make_with_option_fa { $this->artisan($this->command, ['name' => $this->name]) ->expectsQuestion($this->question, 1) - ->expectsOutputToContain('created successfully'); + ->assertSuccessful(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToMigrationIsCreatedWithOriginalName(); @@ -140,7 +140,7 @@ public function test_check_to_create_files_with_command_crud_make_with_ies_name_ // ->expectsQuestion($this->question, 3) // ->expectsQuestion($this->question, 4) ->expectsQuestion($this->question, 5) - ->expectsOutputToContain('created successfully'); + ->assertSuccessful(); $this->checkAllToModelIsCreatedWithOriginalName(); $this->checkAllToControllerIsCreatedWithOriginalName();