-Blöcke). */ putenv('DESKHUB_TESTING=1'); putenv('DESKHUB_SQLITE_PATH=:memory:'); require_once dirname(__DIR__) . '/includes/bootstrap.php'; $failures = []; $total = 0; $check = function (bool $ok, string $what) use (&$failures, &$total): void { $total++; if (!$ok) $failures[] = $what; }; set_setting('display_name', 'Muster Support & Co'); set_setting('site_url', 'https://support.example.de'); set_setting('logo_path', ''); $html = email_wrap(email_p('Hallo') . email_badge('Ticket', '#123') . email_button('Ticket ansehen', 'https://support.example.de/t?n=1&x=2')); $check(str_contains($html, 'width="600"') && str_contains($html, 'max-width:600px'), 'feste Breite 600 für Outlook, auf kleinen Bildschirmen schrumpfend'); $check(substr_count($html, 'role="presentation"') >= 4, 'Layout besteht aus Tabellen'); $check(!preg_match('/display\s*:\s*(flex|grid)|position\s*:\s*(absolute|fixed)|Support'), 'Name der Seite wird maskiert'); $check(str_contains($html, '