Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
mydnic committed Sep 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents c6cd516 + 78adee5 commit 6836215
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions tests/CommitMessageTest.php
Original file line number Diff line number Diff line change
@@ -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]));
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 6836215

Please sign in to comment.