Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Feb 4, 2024
1 parent c67efdc commit de6f0ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/MakeCrudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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();
}
}

0 comments on commit de6f0ed

Please sign in to comment.