From 4a4bda4f750534af5003edaf019f0df6f5bc5729 Mon Sep 17 00:00:00 2001 From: Russ Back Date: Fri, 26 Apr 2024 21:16:09 +0100 Subject: [PATCH] Fixes module directory creation on init action --- src/console/PestController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console/PestController.php b/src/console/PestController.php index 16d3f8d..de8c911 100644 --- a/src/console/PestController.php +++ b/src/console/PestController.php @@ -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'); }