From 93bac9443d28632f87975492c994b5f756bbe68d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 18 Jan 2023 12:03:54 +0100 Subject: [PATCH] test: Expect internal test dependencys in `php/Lib` Loading internal test dependencies did previously only work if placed directly inside `php`. No module does this at this time. --- test/php/bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/php/bootstrap.php b/test/php/bootstrap.php index 36e2f33a8..6cba6b5cd 100644 --- a/test/php/bootstrap.php +++ b/test/php/bootstrap.php @@ -92,9 +92,9 @@ foreach ($modulePaths as $path) { $loader->registerNamespace($moduleNamespace, $moduleLibraryPath); } - $moduleTestPath = "$path/test/php"; + $moduleTestPath = "$path/test/php/Lib"; if (is_dir($moduleTestPath)) { - $loader->registerNamespace('Tests\\' . $moduleNamespace, $moduleTestPath); + $loader->registerNamespace('Tests\\' . $moduleNamespace . '\\Lib', $moduleTestPath); } $moduleFormPath = "$path/application/forms";