This commit is contained in:
@@ -254,6 +254,25 @@ final class ManagerModulstrukturTest extends TestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testManagerRegeltAktuelleVerbraucherTrotzFehlenderRueckmeldungen(): void
|
||||
{
|
||||
$inhalt = (string) file_get_contents(__DIR__ . '/../Manager/module.php');
|
||||
|
||||
self::assertStringNotContainsString("if (!\$synchronisiert) {", $inhalt);
|
||||
self::assertStringContainsString(
|
||||
"'Synchronisiert' => \$synchronisiert",
|
||||
$inhalt
|
||||
);
|
||||
self::assertStringContainsString(
|
||||
"'NichtGeregelt' => \$nichtGeregelt",
|
||||
$inhalt
|
||||
);
|
||||
self::assertStringContainsString(
|
||||
"\$ergebnis = ManagerRegler::verteile(",
|
||||
$inhalt
|
||||
);
|
||||
}
|
||||
|
||||
public function testManagerUebertraegtStoerungsvollsnapshotsMitRetry(): void
|
||||
{
|
||||
$inhalt = (string) file_get_contents(__DIR__ . '/../Manager/module.php');
|
||||
@@ -280,6 +299,13 @@ final class ManagerModulstrukturTest extends TestCase
|
||||
'"name":"StoermeldeAnschluss"',
|
||||
str_replace(' ', '', (string) file_get_contents(__DIR__ . '/../Manager/form.json'))
|
||||
);
|
||||
self::assertStringContainsString(
|
||||
"if (\$token === '') {\n"
|
||||
. " \$this->aktualisiereLizenzfreigabe(\n"
|
||||
. " \$this->ReadPropertyString('Lizenzcode'),\n"
|
||||
. " true",
|
||||
$inhalt
|
||||
);
|
||||
self::assertGreaterThanOrEqual(
|
||||
3,
|
||||
substr_count(
|
||||
|
||||
Reference in New Issue
Block a user