From b165a6c782174de2f3094d5ba61dcc6317d58175 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Mon, 4 Nov 2024 00:13:41 +0200 Subject: [PATCH] Fix CF7 tests. --- .tests/php/integration/CF7/AdminTest.php | 77 +++++++++--------------- 1 file changed, 30 insertions(+), 47 deletions(-) diff --git a/.tests/php/integration/CF7/AdminTest.php b/.tests/php/integration/CF7/AdminTest.php index d2fd9820..256305ad 100644 --- a/.tests/php/integration/CF7/AdminTest.php +++ b/.tests/php/integration/CF7/AdminTest.php @@ -415,55 +415,39 @@ public function test_tag_generator_hcaptcha(): void { 'title' => 'hCaptcha', 'content' => 'tag-generator-panel-cf7-hcaptcha', ]; - $expected = '
+ $expected = '
+

hCaptcha field form-tag generator

+

Generate a form-tag for a hCaptcha field.

+
+ +
- Generate a form-tag for a hCaptcha field. - - - - - - - - - - - - - - - -
- - - -
- - - -
-
+ Field type + + + +
+ + +
+ Field name + + +
+
+ Class attribute + +
-
- - -
- -
-
+ '; $subject = new Admin(); @@ -477,7 +461,6 @@ public function test_tag_generator_hcaptcha(): void { * Test enqueue_admin_scripts_before_cf7() and enqueue_admin_scripts_after_cf7(). * * @noinspection PhpConditionAlreadyCheckedInspection - * @noinspection PhpUndefinedConstantInspection */ public function test_enqueue_admin_scripts(): void { global $wp_scripts;