Skip to content

Commit

Permalink
Remove print_emoji_detection_script in tests for sake of WordPress 5.…
Browse files Browse the repository at this point in the history
…0-alpha
  • Loading branch information
westonruter committed May 23, 2018
1 parent a4dd15c commit 77e29aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test-class-amp-widget-recent-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function test_construct() {
* @covers AMP_Widget_Recent_Comments::remove_head_style_in_amp()
*/
public function test_remove_head_style_in_amp() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); // Workaround for WordPress 5.0-alpha (#43055).

new AMP_Widget_Recent_Comments();
$this->assertTrue( apply_filters( 'show_recent_comments_widget_style', true ) );
ob_start();
Expand All @@ -58,6 +60,8 @@ public function test_remove_head_style_in_amp() {
* @covers AMP_Widget_Recent_Comments::remove_head_style_in_amp()
*/
public function test_remove_head_style_in_amp_not() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); // Workaround for WordPress 5.0-alpha (#43055).

remove_theme_support( 'amp' );
new AMP_Widget_Recent_Comments();
$this->assertTrue( apply_filters( 'show_recent_comments_widget_style', true ) );
Expand Down

0 comments on commit 77e29aa

Please sign in to comment.