Fix local test execution tools (#20627)

This commit is contained in:
Maksim Spirkov
2025-10-19 18:49:34 +03:00
committed by GitHub
parent ca108e2386
commit f9c1c1d6fd
17 changed files with 183 additions and 339 deletions

View File

@@ -23,9 +23,9 @@ require_once __DIR__ . '/../framework/Yii.php';
Yii::setAlias('@yiiunit', __DIR__);
if (getenv('TEST_RUNTIME_PATH')) {
Yii::setAlias('@yiiunit/runtime', getenv('TEST_RUNTIME_PATH'));
Yii::setAlias('@runtime', getenv('TEST_RUNTIME_PATH'));
if (getenv('IS_LOCAL_TESTS')) {
Yii::setAlias('@yiiunit/runtime', '/tmp/runtime');
Yii::setAlias('@runtime', '/tmp/runtime');
}
require_once __DIR__ . '/TestCase.php';