diff --git a/DeskHub-Webseite/tests/push_relay.php b/DeskHub-Webseite/tests/push_relay.php index f671922b..778bba5d 100644 --- a/DeskHub-Webseite/tests/push_relay.php +++ b/DeskHub-Webseite/tests/push_relay.php @@ -107,7 +107,7 @@ try { // Verwaltungsseite: Installationen sehen, sperren, entsperren, löschen $jar = $work . '/admin.jar'; $web = function (string $method, array $form = []) use ($relayPort, $jar): string { - $ch = curl_init("http://127.0.0.1:$relayPort/admin.php"); + $ch = curl_init("http://127.0.0.1:$relayPort/admin.php?tab=push"); curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_COOKIEJAR => $jar, CURLOPT_COOKIEFILE => $jar, CURLOPT_TIMEOUT => 20]); if ($method === 'POST') curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($form)]); $o = curl_exec($ch); @@ -119,7 +119,7 @@ try { $page = $web('GET'); preg_match('/name="csrf" value="([a-f0-9]+)"/', $page, $cm); $csrf = $cm[1] ?? ''; - $check(str_contains($page, 'Push-Dienst (Android-App)') && str_contains($page, 'support.firma.de') && !str_contains($page, '