Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
norbybaru committed Jun 16, 2024
1 parent ef94a51 commit 4f9939e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/Commands/MakeModelCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ public function test_it_creates_a_model_with_migration()
)
->assertExitCode(exitCode: 0);

$this->assertFileExists(filename: $this->getModulePath($module).'/Models/Video.php');
$this->assertDirectoryExists(
directory: $this->getModulePath($module).'/Database/migration/'
directory: $this->getModulePath($module).'/Database/migration'
);
$this->assertFileExists(filename: $this->getModulePath($module).'/Models/Video.php');

// TODO: Fix timestamp issue in test
// $this->assertFileExists(filename: $this->getModulePath().'/Database/migration/'.$datetime.'_create_posts_table.php');
}
Expand Down Expand Up @@ -71,12 +72,14 @@ public function test_it_creates_a_model_with_migration_and_factory()
)
->assertExitCode(exitCode: 0);

$this->assertDirectoryExists(
directory: $this->getModulePath($module).'/Database/migration'
);

$this->assertFileExists(
filename: $this->getModulePath($module).'/Models/Listing.php'
);
$this->assertDirectoryExists(
directory: $this->getModulePath($module).'/Database/migration/'
);

// TODO: Fix timestamp issue in test
// $this->assertFileExists(
// filename: $this->getModulePath().'/Database/migration/'.$datetime.'_create_posts_table.php'
Expand Down

0 comments on commit 4f9939e

Please sign in to comment.