Skip to content

Commit 48be520

Browse files
authored
Merge pull request #2108 from cndrsdrmn/update-phpunit-coverage-command
Replace Hardcoded Paths with Configurable Values in `UpdatePhpunitCoverage` Command
2 parents 6e1f50d + a9df45c commit 48be520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/UpdatePhpunitCoverage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function handle(): int
2929
$appFolder = config('modules.paths.app_folder', 'app/');
3030
$appFolder = rtrim($appFolder, '/').'/';
3131
$phpunitXmlPath = base_path('phpunit.xml');
32-
$modulesStatusPath = base_path('modules_statuses.json');
32+
$modulesStatusPath = config('modules.activators.file.statuses-file', base_path('modules_statuses.json'));
3333

3434
if (! file_exists($phpunitXmlPath)) {
3535
$this->error("phpunit.xml file not found: {$phpunitXmlPath}");
@@ -51,7 +51,7 @@ public function handle(): int
5151
return 98;
5252
}
5353

54-
$modulesPath = base_path('Modules/');
54+
$modulesPath = rtrim(config('modules.paths.modules', base_path('Modules')), '/').'/';
5555
$moduleDirs = [];
5656

5757
foreach ($enabledModules as $module => $status) {

0 commit comments

Comments
 (0)