feat(manager): integrate forecast controls and merge V4 development
Tests / test (push) Failing after 49s
Tests / test (push) Failing after 49s
Merge the V4 development history with current manager, SDL and setpoint fixes. Retain guarded trial behavior and consolidate controls in Prognose / Forecast. Exclude the unverified accounting-evidence change; no runtime deployment or new dispatch permission. Validated: 357 PHPUnit tests / 1758 assertions, 150 PHP syntax checks, 310 backend tests, 16 portal tests and isolated UI/receiver checks. develop and beta publication explicitly approved by Daniel Haefliger.
This commit is contained in:
@@ -10,6 +10,24 @@ final class BatterieModulstrukturTest extends TestCase
|
||||
{
|
||||
private const MODULPFAD = __DIR__ . '/../Batterie/';
|
||||
|
||||
public function testV4StoppUndSollwertVerwerfenBleibenGemeinsamErhalten(): void
|
||||
{
|
||||
$modul = (string) file_get_contents(self::MODULPFAD . 'module.php');
|
||||
self::assertMatchesRegularExpression(
|
||||
"/case 'SichererZustand':\\s*\\\$this->V4BatterieTestStoppen\\(\\);"
|
||||
. "\\s*\\\$this->verwerfeSollwert\\(\\);\\s*\\\$this->schreibeRegister\\(0, true\\);/",
|
||||
$modul
|
||||
);
|
||||
self::assertSame(1, preg_match(
|
||||
'/private function ManagerdatenEmpfangenIntern\\(array \\$daten\\): void(.*?)private function aktualisiere\\(/s',
|
||||
$modul,
|
||||
$empfang
|
||||
));
|
||||
self::assertStringContainsString('$this->verwerfeSollwert();', $empfang[1]);
|
||||
self::assertStringContainsString('$this->aktualisiereIntern(false);', $empfang[1]);
|
||||
self::assertStringNotContainsString('$this->aktualisiere(', $empfang[1]);
|
||||
}
|
||||
|
||||
public function testModulIstVollstaendigUndMetadatenSindGueltig(): void
|
||||
{
|
||||
foreach (['module.json', 'form.json', 'module.php', 'README.md'] as $datei) {
|
||||
@@ -127,4 +145,17 @@ final class BatterieModulstrukturTest extends TestCase
|
||||
substr_count($manager, '{437FB683-517F-4FEC-8CCB-FE6B0A62B69E}')
|
||||
);
|
||||
}
|
||||
|
||||
public function testBatterieformularHatKeinenSeparatenV4Bereich(): void
|
||||
{
|
||||
$modul = (string) file_get_contents(self::MODULPFAD . 'module.php');
|
||||
$formular = (string) file_get_contents(self::MODULPFAD . 'form.json');
|
||||
self::assertStringNotContainsString('V4 physische Rueckmeldung', $modul);
|
||||
self::assertStringNotContainsString('NetzfahrplanV4RueckmeldungKonfiguration', $formular);
|
||||
self::assertStringNotContainsString("'name'=>'NetzfahrplanV4RueckmeldungKonfiguration'", $modul);
|
||||
|
||||
$rueckmeldung = (string) file_get_contents(__DIR__ . '/../libs/BatterieNetzfahrplanV4RueckmeldungTrait.php');
|
||||
self::assertStringContainsString("RegisterPropertyString('NetzfahrplanV4RueckmeldungKonfiguration'", $rueckmeldung);
|
||||
self::assertStringContainsString('$this->konfiguriereV4Rueckmeldung();', $modul);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user