Skip to content

Commit

Permalink
Update mailchimp shortcode test to match earlier fix for issue Automa…
Browse files Browse the repository at this point in the history
…ttic#8546 - test for updated script string.
  • Loading branch information
adamziel committed Jan 25, 2018
1 parent c609360 commit 129234a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/modules/shortcodes/test_class.mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public function test_shortcodes_mailchimp_form() {

$shortcode_content = do_shortcode( $content );

$this->assertContains( '<script type="text/javascript" data-dojo-config="usePlainJson: true, isDebug: false">jQuery.getScript( "//downloads.mailchimp.com/js/signup-forms/popup/embed.js", function( data, textStatus, jqxhr ) { require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us11.list-manage.com","uuid":"' . $uuid . '","lid":"' . $lid . '"}) }); } );</script>', $shortcode_content );
$this->assertContains( '<script type="text/javascript" data-dojo-config="usePlainJson: true, isDebug: false">jQuery.getScript( "//downloads.mailchimp.com/js/signup-forms/popup/embed.js", function( data, textStatus, jqxhr ) { require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us11.list-manage.com","uuid":"' . $uuid . '","lid":"' . $lid . '"}) }); window.define.amd = undefined; } );</script>', $shortcode_content );
}
}

0 comments on commit 129234a

Please sign in to comment.