Skip to content

Commit

Permalink
Fixes module directory creation on init action
Browse files Browse the repository at this point in the history
  • Loading branch information
russback authored Apr 26, 2024
1 parent 4b25d82 commit 4a4bda4
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 4a4bda4

Please sign in to comment.