Portiere PHP-Cronjobs auf Spring-Tasks und ergänze Legacy-Tests

Migriert die weiterhin benötigten Zeitaufgaben einschließlich SOAP-Importen, Betriebsstatus und Wiederanlaufkontrolle. Aktiviert 115 native Spring-Tasks im Docker-Image ohne Cron-Daemon oder PHP und dokumentiert die entfallenen HHA-Aufrufe. Ergänzt PHP-/UI-Testwerkzeuge und aktualisiert den Projektstand auf Version 0.2.0.
This commit is contained in:
Sven committed 2026-10-27 09:53:23 +01:00
1 parent 781a2b82dc
commit 9de2358480
57 files changed
+3251 -7

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<?php
if (PHP_SAPI !== 'cli') {
throw new RuntimeException('Tests may only run through PHP CLI.');
}
require __DIR__ . '/support/LegacyFunctions.php';
require __DIR__ . '/support/Fixtures.php';
require __DIR__ . '/support/LegacyTestCase.php';
date_default_timezone_set('Europe/Berlin');
$root = getenv('VOTIAN_SOURCE_ROOT');
if (!$root || !is_dir($root)) {
throw new RuntimeException('Set VOTIAN_SOURCE_ROOT to the current server html directory.');
}
$selection = [
'include/calendar.inc.php' => ['leapYear', 'daysPerMonth', 'addDaysComplete', 'addMonths'],
'include/caglobal.inc.php' => ['getNextOrderDate', 'isPublicHoliday', 'checkDiscountStr'],
'include/services_func.inc.php' => ['getServicePrices', 'getCr_price_global', 'get_cr_price_rate'],
'include/mcglobal.inc.php' => ['formatOutput'],
'include/global.inc.php' => ['eregPhoneNo', 'removeItemStringList', 'mcCheckCondition'],
];
$manifest = LegacyFunctions::load($root, $selection);
$reportDir = getenv('VOTIAN_TEST_REPORT_DIR');
if ($reportDir) {
$report = ['php' => PHP_VERSION, 'timezone' => date_default_timezone_get(),
'sourceRoot' => realpath($root), 'files' => $manifest];
if (file_put_contents($reportDir . '/source-manifest.json',
json_encode($report, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR) . "\n") === false) {
throw new RuntimeException('Could not write source manifest');
}
}