External Libraries: Test for MEjs files in src instead of build.

The `build` task doesn't get run during TravisCI jobs, so the `build` folder doesn't exist in that context. Because of that, the test added in r42762 was failling.

Checking for the files in `src` instead achieves the same goal as that commit, but should pass in Travis.

See #43101
See https://wordpress.slack.com/archives/C02RQBWTW/p1519742993000615


git-svn-id: https://develop.svn.wordpress.org/trunk@42763 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Dunn 2018-02-28 00:25:08 +00:00
parent fde455a89f
commit c896326c55

View File

@ -18,7 +18,7 @@ class Tests_Dependencies_MediaElementjs extends WP_UnitTestCase {
* @ticket 42720
*/
function test_exclusion_of_flash() {
$mejs_folder = dirname( ABSPATH ) . '/build/' . WPINC . '/js/mediaelement';
$mejs_folder = ABSPATH . WPINC . '/js/mediaelement';
$js_files = glob( $mejs_folder . '/*.js' );
/*