From f017338460a7c4fbaa9f04ce74498eaa794f8f9e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 22 Apr 2017 20:17:49 +0000 Subject: [PATCH] Build/Test Tools: Don't trigger a skipped test when the built version of `wp-embed.min.js` isn't present. The grunt command assertion prior to the check for the existence of the file is enough to safeguard this test. See #34698, #40533 git-svn-id: https://develop.svn.wordpress.org/trunk@40526 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/oembed/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/oembed/template.php b/tests/phpunit/tests/oembed/template.php index 48245d1125..7c8252902a 100644 --- a/tests/phpunit/tests/oembed/template.php +++ b/tests/phpunit/tests/oembed/template.php @@ -303,7 +303,7 @@ class Tests_Embed_Template extends WP_UnitTestCase { $file = dirname( ABSPATH ) . '/build/' . WPINC . '/js/wp-embed.min.js'; if ( ! file_exists( $file ) ) { - $this->markTestSkipped( "This test is for the compiled wp-embed.min.js file." ); + return; } $this->assertNotContains( '&', file_get_contents( $file ) ); }