fix: render DirectAdmin user hooks
This commit is contained in:
@@ -18,3 +18,13 @@ test('mockup forms include calendar classes and delete confirmation view', funct
|
||||
assert_contains('Potwierdź usunięcie', $delete);
|
||||
assert_false(stripos($delete, 'checkbox') !== false);
|
||||
});
|
||||
|
||||
test('directadmin user hooks are clickable and point to reserved icon path', function (): void {
|
||||
$img = file_get_contents(PLUGIN_ROOT . '/hooks/user_img.html') ?: '';
|
||||
$txt = file_get_contents(PLUGIN_ROOT . '/hooks/user_txt.html') ?: '';
|
||||
|
||||
assert_contains('<a href="/CMD_PLUGINS/global-autoresponder/index.html"', $img);
|
||||
assert_contains('<img src="/CMD_PLUGINS/global-autoresponder/images/user_icon.svg"', $img);
|
||||
assert_contains('<a href="/CMD_PLUGINS/global-autoresponder/index.html"', $txt);
|
||||
assert_contains('Globalne autorespondery', $txt);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user