Skip to content

Commit

Permalink
Fix legacy form test
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Nov 8, 2024
1 parent 10885ab commit 28c8ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wpunit/APITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<form id="ck_subscribe_form" class="ck_subscribe_form" action="https://api.kit.com/landing_pages/' . $_ENV['CONVERTKIT_API_LEGACY_FORM_ID'] . '/subscribe" data-remote="true">', $result);
$this->assertStringContainsString('<form id="ck_subscribe_form" class="ck_subscribe_form" action="https://api.convertkit.com/landing_pages/' . $_ENV['CONVERTKIT_API_LEGACY_FORM_ID'] . '/subscribe" data-remote="true">', $result);

// Assert that the API class' manually added UTF-8 Content-Type has been removed prior to output.
$this->assertStringNotContainsString('<meta http-equiv="Content-Type" content="text/html; charset=utf-8">', $result);
Expand Down

0 comments on commit 28c8ade

Please sign in to comment.