Make WordPress Core

Changeset 40526


Ignore:
Timestamp:
04/22/2017 08:17:49 PM (8 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed/template.php

    r39919 r40526  
    304304        $file = dirname( ABSPATH ) . '/build/' . WPINC . '/js/wp-embed.min.js';
    305305        if ( ! file_exists( $file ) ) {
    306             $this->markTestSkipped( "This test is for the compiled wp-embed.min.js file." );
     306            return;
    307307        }
    308308        $this->assertNotContains( '&', file_get_contents( $file ) );
Note: See TracChangeset for help on using the changeset viewer.