Skip to content

Commit

Permalink
Commit Jeremy's suggestion to possibly markTestSkipped()
Browse files Browse the repository at this point in the history
This test won't apply
if it's in a WordPress.com environment.
  • Loading branch information
kienstra committed Nov 19, 2019
1 parent 68ef6e8 commit a0ed7e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/php/modules/shortcodes/test-class.dailymotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a0ed7e0

Please sign in to comment.