From 28c8adeb34d49d5fb149fc341bfa64d3d81b7708 Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 8 Nov 2024 20:41:58 +0800 Subject: [PATCH] Fix legacy form test --- tests/wpunit/APITest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wpunit/APITest.php b/tests/wpunit/APITest.php index efed8cc..d504be8 100644 --- a/tests/wpunit/APITest.php +++ b/tests/wpunit/APITest.php @@ -6142,7 +6142,7 @@ public function testGetLegacyFormHTML() { $result = $this->api->get_form_html($_ENV['CONVERTKIT_API_LEGACY_FORM_ID'], $_ENV['CONVERTKIT_API_KEY']); $this->assertNotInstanceOf(WP_Error::class, $result); - $this->assertStringContainsString('
', $result); + $this->assertStringContainsString('', $result); // Assert that the API class' manually added UTF-8 Content-Type has been removed prior to output. $this->assertStringNotContainsString('', $result);