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();