From a0ed7e082091f08db622b4e8d956c6a6aeb0e0b0 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Mon, 18 Nov 2019 20:49:40 -0600 Subject: [PATCH] Commit Jeremy's suggestion to possibly markTestSkipped() This test won't apply if it's in a WordPress.com environment. --- tests/php/modules/shortcodes/test-class.dailymotion.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/php/modules/shortcodes/test-class.dailymotion.php b/tests/php/modules/shortcodes/test-class.dailymotion.php index d8ce00bb08d37..fa6fec576e118 100644 --- a/tests/php/modules/shortcodes/test-class.dailymotion.php +++ b/tests/php/modules/shortcodes/test-class.dailymotion.php @@ -199,6 +199,11 @@ public function get_dailymotion_amp_data() { * @param string $expected The expected return value of the function. */ public function test_shortcodes_dailymotion_amp( $shortcode_content, $expected ) { + if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { + self::markTestSkipped( 'WordPress.com does not run the latest version of the AMP plugin yet.' ); + return; + } + global $content_width; $content_width = self::CONTENT_WIDTH;