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('