Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/cleantalk-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') . ' ' . '<a href="https://cleantalk.org/help/show-email-existence-alert" target="_blank" rel="noopener noreferrer">' . __('Read more', 'cleantalk-spam-protect') . '</a>',
),
),
),
Expand Down
14 changes: 14 additions & 0 deletions tests/Inc/TestCleantalkSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
Loading