Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Nov 25, 2024
1 parent ff68b3a commit ce869a8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .tests/php/integration/Divi/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ class="hcaptcha-signature"
]
);

add_filter(
'template',
static function () {
return 'Divi';
}
);

hcaptcha()->init_hooks();

$subject = new Login();
Expand Down
12 changes: 12 additions & 0 deletions .tests/php/unit/HCaptchaTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,18 @@ protected function get_test_integrations_form_fields(): array {
'form' => 'Form',
],
],
'extra_status' => [
'entity' => 'theme',
'label' => 'Extra',
'logo' => 'svg',
'type' => 'checkbox',
'options' => [
'comment' => 'Extra Comment Form',
'contact' => 'Extra Contact Form',
'email_optin' => 'Extra Email Optin Form',
'login' => 'Extra Login Form',
],
],
'fluent_status' =>
[
'label' => 'Fluent Forms',
Expand Down
5 changes: 5 additions & 0 deletions .tests/php/unit/Settings/SystemInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ public function test_get_system_info(): void {
Register: Off
Essential Blocks:
Form: Off
Extra:
Extra Comment Form: Off
Extra Contact Form: Off
Extra Email Optin Form: Off
Extra Login Form: Off
Fluent Forms:
Form: On
Formidable Forms:
Expand Down

0 comments on commit ce869a8

Please sign in to comment.