diff --git a/tests/CommitMessageTest.php b/tests/CommitMessageTest.php index 0706b14..cdd0275 100644 --- a/tests/CommitMessageTest.php +++ b/tests/CommitMessageTest.php @@ -10,8 +10,8 @@ 'message' => 'feat: fix issue with authentication > You can now login without any issue -> Enjoy!' - ] +> Enjoy!', + ], ]; $result = \Mydnic\ChangelogCommitForLaravel\ChangelogCommitForLaravel::prepareCommits(collect([$commitMessage])); @@ -30,8 +30,8 @@ ], 'message' => 'feat: fix issue with authentication -Refactor the code' - ] +Refactor the code', + ], ]; $result = \Mydnic\ChangelogCommitForLaravel\ChangelogCommitForLaravel::prepareCommits(collect([$commitMessage])); @@ -48,8 +48,8 @@ ], 'message' => 'feat: fix issue with authentication -Refactor the code' - ] +Refactor the code', + ], ]; $commitMessage2 = [ @@ -61,8 +61,8 @@ 'message' => 'feat: fix issue with authentication > You can now login without any issue -> Enjoy!' - ] +> Enjoy!', + ], ]; $result = \Mydnic\ChangelogCommitForLaravel\ChangelogCommitForLaravel::prepareCommits(collect([$badcommitMessage, $commitMessage2])); diff --git a/tests/TestCase.php b/tests/TestCase.php index d81cab4..7d024a4 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -13,7 +13,7 @@ protected function setUp(): void parent::setUp(); Factory::guessFactoryNamesUsing( - fn(string $modelName) => 'Mydnic\\ChangelogCommitForLaravel\\Database\\Factories\\' . class_basename($modelName) . 'Factory' + fn (string $modelName) => 'Mydnic\\ChangelogCommitForLaravel\\Database\\Factories\\'.class_basename($modelName).'Factory' ); } @@ -28,7 +28,7 @@ public function getEnvironmentSetUp($app) { config()->set('database.default', 'testing'); - $migration = include __DIR__ . '/../database/migrations/create_changelog_commit_for_laravel_table.php.stub'; + $migration = include __DIR__.'/../database/migrations/create_changelog_commit_for_laravel_table.php.stub'; $migration->up(); } }