From 77e29aa421756305954f355838026b599957a4a0 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 23 May 2018 13:47:48 -0700 Subject: [PATCH] Remove print_emoji_detection_script in tests for sake of WordPress 5.0-alpha --- tests/test-class-amp-widget-recent-comments.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test-class-amp-widget-recent-comments.php b/tests/test-class-amp-widget-recent-comments.php index 4d74f160a8b..34185328ace 100644 --- a/tests/test-class-amp-widget-recent-comments.php +++ b/tests/test-class-amp-widget-recent-comments.php @@ -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(); @@ -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 ) );