@@ -43,7 +43,7 @@ public function __construct(Moodle $moodle, MoodlePlugin $plugin, Execute $execu
4343 */
4444 private function getBehatUtility (): string
4545 {
46- return $ this ->moodle ->directory . '/admin/tool/behat/cli/util_single_run.php ' ;
46+ return $ this ->moodle ->getPublicDirectory () . '/admin/tool/behat/cli/util_single_run.php ' ;
4747 }
4848
4949 public function install (): void
@@ -104,7 +104,7 @@ public function getUnitTestInstallProcesses(): array
104104
105105 return [
106106 new MoodleProcess ([
107- $ this ->moodle ->directory . '/admin/tool/phpunit/cli/util.php ' ,
107+ $ this ->moodle ->getPublicDirectory () . '/admin/tool/phpunit/cli/util.php ' ,
108108 '--install ' ,
109109 ]),
110110 ];
@@ -130,15 +130,15 @@ public function getPostInstallProcesses(): array
130130 if ($ this ->plugin ->hasUnitTests ()) {
131131 $ this ->getOutput ()->debug ('Build PHPUnit config ' );
132132 $ processes [] = new MoodleProcess ([
133- $ this ->moodle ->directory . '/admin/tool/phpunit/cli/util.php ' ,
133+ $ this ->moodle ->getPublicDirectory () . '/admin/tool/phpunit/cli/util.php ' ,
134134 '--buildconfig ' ,
135135 ]);
136136 // Only create the PHPUnit config file (phpunit.xml) if it does not exist.
137137 // This is to avoid overwriting the file if it has been customized by the developer.
138138 if (!$ this ->plugin ->hasPHPUnitConfig ()) {
139139 $ this ->getOutput ()->debug ('Build PHPUnit component config ' );
140140 $ processes [] = new MoodleProcess ([
141- $ this ->moodle ->directory . '/admin/tool/phpunit/cli/util.php ' ,
141+ $ this ->moodle ->getPublicDirectory () . '/admin/tool/phpunit/cli/util.php ' ,
142142 '--buildcomponentconfigs ' ,
143143 ]);
144144 }
0 commit comments