MDL-84355 phpunit: Correct test path for component configs

This commit is contained in:
Andrew Nicols
2025-01-29 11:46:01 +08:00
parent 2a753faf06
commit b8f287220e
+5 -3
View File
@@ -506,6 +506,7 @@ class phpunit_util extends testing_util {
<testsuite name="@component@_testsuite">
<directory suffix="_test.php">@dir@</directory>
<exclude>@dir@/classes</exclude>
<exclude>@dir@/fixtures</exclude>
</testsuite>
EOF;
@@ -597,8 +598,9 @@ class phpunit_util extends testing_util {
$template = <<<EOT
<testsuites>
<testsuite name="@component@_testsuite">
<directory suffix="_test.php">.</directory>
<exclude>./classes</exclude>
<directory suffix="_test.php">tests</directory>
<exclude>tests/classes</exclude>
<exclude>tests/fixtures</exclude>
</testsuite>
</testsuites>
EOT;
@@ -607,7 +609,7 @@ class phpunit_util extends testing_util {
<directory suffix=".php">.</directory>
</include>
<exclude>
<directory suffix="_test.php">.</directory>
<directory suffix="_test.php">tests</directory>
</exclude>
EOT;