From abd0998600d7f29bbdc134748655c528a23025ea Mon Sep 17 00:00:00 2001 From: Jack Wilkinson Date: Wed, 8 Mar 2023 11:07:01 +0000 Subject: [PATCH] Manually register system class aliases in test bootstrap --- modules/system/tests/bootstrap/app.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/system/tests/bootstrap/app.php b/modules/system/tests/bootstrap/app.php index 11dd502e78..1063af2536 100644 --- a/modules/system/tests/bootstrap/app.php +++ b/modules/system/tests/bootstrap/app.php @@ -25,6 +25,15 @@ $loader->autoloadPackage(basename($modulePath), $modulePath); } +/* + * Manually register System aliases + */ +foreach (require(__DIR__ . '/../../aliases.php') as $alias => $class) { + if (!class_exists($alias)) { + class_alias($class, $alias); + } +} + /* * Manually register all plugin classes for autoloading */