Upload via GUI (340 Dateien)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user