Skip to content

Commit

Permalink
Update MakeCrudTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Apr 14, 2024
1 parent 6df1d92 commit e4df7c1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/MakeCrudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e4df7c1

Please sign in to comment.