Skip to content

Commit

Permalink
Merge pull request #23 from russback/main
Browse files Browse the repository at this point in the history
Fixes module directory creation on init action
  • Loading branch information
markhuot authored Apr 29, 2024
2 parents 4b25d82 + 4a4bda4 commit 509e54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/console/PestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function runInit()
if (! file_exists(CRAFT_BASE_PATH.'/phpunit.xml')) {
copy(__DIR__.'/../../stubs/init/phpunit.xml', CRAFT_BASE_PATH.'/phpunit.xml');
}
if (is_dir(CRAFT_BASE_PATH.'/modules')) {
if (! is_dir(CRAFT_BASE_PATH.'/modules')) {
FileHelper::createDirectory(CRAFT_BASE_PATH.'/modules/pest/seeders');
copy(__DIR__.'/../../stubs/seeders/DatabaseSeeder.php', CRAFT_BASE_PATH.'/modules/pest/seeders/DatabaseSeeder.php');
}
Expand Down

0 comments on commit 509e54f

Please sign in to comment.