diff --git a/inc/cleantalk-settings.php b/inc/cleantalk-settings.php index c6e94c6c1..8e8d344ea 100644 --- a/inc/cleantalk-settings.php +++ b/inc/cleantalk-settings.php @@ -651,7 +651,7 @@ function apbct_settings__set_fields() ), 'data__email_check_exist_post' => array( 'title' => __('Show email existence alert when filling in the field', 'cleantalk-spam-protect'), - 'description' => __('Checks the email address and shows the result as an icon in the email field before submitting the form. Works for WooCommerce checkout form, FluentForms, Contact Form 7, Gravity Forms, Ninja Forms, WPForms, standard WordPress comment form and registration form.', 'cleantalk-spam-protect'), + 'description' => __('Checks the email address and shows the result as an icon in the email field before submitting the form. Works for WooCommerce checkout form, FluentForms, Contact Form 7, Gravity Forms, Ninja Forms, WPForms, standard WordPress comment form and registration form.', 'cleantalk-spam-protect') . ' ' . '' . __('Read more', 'cleantalk-spam-protect') . '', ), ), ), diff --git a/tests/Inc/TestCleantalkSettings.php b/tests/Inc/TestCleantalkSettings.php index 9e8bbc108..c0e04e939 100644 --- a/tests/Inc/TestCleantalkSettings.php +++ b/tests/Inc/TestCleantalkSettings.php @@ -26,4 +26,18 @@ public function testApbctSettingsSetFieldsBotDetector() $this->assertArrayHasKey('display', $data_processing_options['bot_detector_state']); $this->assertArrayNotHasKey('parent', $data_processing_options['exclusions__bot_detector']); } + + public function testApbctSettingsSetFieldsEmailCheckReadMore() + { + $fields = apbct_settings__set_fields(); + + $this->assertArrayHasKey('data_processing', $fields); + + $data_processing_options = $fields['data_processing']['fields']; + + $this->assertArrayHasKey('data__email_check_exist_post', $data_processing_options); + $this->assertArrayHasKey('description', $data_processing_options['data__email_check_exist_post']); + $this->assertStringContainsString('https://cleantalk.org/help/show-email-existence-alert', $data_processing_options['data__email_check_exist_post']['description']); + $this->assertStringContainsString('Read more', $data_processing_options['data__email_check_exist_post']['description']); + } } \ No newline at end of file