From a0bd158a2eaa6914d4b4cf91b28b63ebf382283e Mon Sep 17 00:00:00 2001 From: Marek Miklewicz Date: Tue, 2 Jun 2026 19:32:58 +0200 Subject: [PATCH] fix: render DirectAdmin user hooks --- hooks/user_img.html | 2 +- hooks/user_txt.html | 2 +- plugin.conf | 2 +- tests/handler_test.php | 10 ++++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hooks/user_img.html b/hooks/user_img.html index 1d22309..b9c82c1 100644 --- a/hooks/user_img.html +++ b/hooks/user_img.html @@ -1 +1 @@ -images/user_icon.svg +Globalne autorespondery diff --git a/hooks/user_txt.html b/hooks/user_txt.html index 35daf1a..e7044d9 100644 --- a/hooks/user_txt.html +++ b/hooks/user_txt.html @@ -1 +1 @@ -Globalne autorespondery +Globalne autorespondery diff --git a/plugin.conf b/plugin.conf index 7eb4648..664b450 100644 --- a/plugin.conf +++ b/plugin.conf @@ -2,6 +2,6 @@ name=global-autoresponder id=global-autoresponder type=user author=HITME.PL -version=1.0.1 +version=1.0.2 active=no installed=no diff --git a/tests/handler_test.php b/tests/handler_test.php index 7527496..0dabe27 100644 --- a/tests/handler_test.php +++ b/tests/handler_test.php @@ -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('