Upload via GUI (340 Dateien)

This commit is contained in:
2026-10-26 21:19:17 +00:00
parent 2bc706cb09
commit d6df75ad64
2 changed files with 5 additions and 9 deletions
@@ -170,13 +170,9 @@ try {
$after = browser_request($port, 'GET', '/staff/departments.php', $cookies);
if (stripos($after[1], 'kann nicht gelöscht werden') === false) throw new RuntimeException('Nach dem Löschversuch fehlt die verständliche Meldung.');
}
// App-Download: Seite für alle Mitarbeiter, Datei nur mit Anmeldung
assert_page(browser_request($port, 'GET', '/staff/apps.php', $cookies), 'Android-App herunterladen');
$dl = browser_request($port, 'GET', '/staff/app_download.php?platform=android', $cookies);
if ($dl[0] !== 200 || $dl[1] !== $smokeApk) throw new RuntimeException('App-Download liefert nicht die hinterlegte Datei.');
if (stripos(implode("
", $dl[2]), 'application/vnd.android.package-archive') === false) throw new RuntimeException('App-Download hat den falschen Dateityp.');
if (browser_request($port, 'GET', '/staff/app_download.php?platform=windows', $cookies)[0] !== 404) throw new RuntimeException('Nicht hinterlegte App sollte 404 liefern.');
// App-Download: Die Apps kommen von der Plugin-Seite (hier ohne erreichbaren Katalog): Seite lädt, Download liefert 404, ohne Anmeldung 302
assert_page(browser_request($port, 'GET', '/staff/apps.php', $cookies), 'Apps für Mitarbeiter');
if (browser_request($port, 'GET', '/staff/app_download.php?platform=android', $cookies)[0] !== 404) throw new RuntimeException('Ohne veröffentlichte App sollte der Download 404 liefern.');
if (browser_request($port, 'GET', '/staff/app_download.php?platform=../../config/config', $cookies)[0] !== 404) throw new RuntimeException('Unbekannte Plattform sollte 404 liefern.');
$noCookies = [];
$anon = browser_request($port, 'GET', '/staff/app_download.php?platform=android', $noCookies);