14 lines
540 B
PHP
14 lines
540 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
require_once PLUGIN_ROOT . '/exec/lib/Http.php';
|
|
|
|
test('http redirect fallback renders visible html document for cli plugin runtime', function (): void {
|
|
$html = Http::redirectDocument('/CMD_PLUGINS/global-autoresponder/index.html?status=created');
|
|
|
|
assert_contains('<meta http-equiv="refresh"', $html);
|
|
assert_contains('window.location.replace', $html);
|
|
assert_contains('/CMD_PLUGINS/global-autoresponder/index.html?status=created', $html);
|
|
assert_contains('Przekierowanie', $html);
|
|
});
|