Make WordPress Core


Ignore:
Timestamp:
03/01/2021 08:21:23 PM (6 years ago)
Author:
johnbillion
Message:

Build/Test Tools: PHPUnit test improvements:

  • Switch back to running the PHPUnit test suite against the src directory instead of build
  • Increase the reliability of backing up the mu-plugins directory during tests
  • Split the PHPUnit tests for PHP versions below 7.0 in half, allowing them to run in parallel and reduce the overall test run duration on GitHub Actions

Merges [50441-50444] to the 5.7 branch.

Fixes #51734, #51735, #52645

Location:
branches/5.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.7

  • branches/5.7/tests/phpunit/tests/formatting/Emoji.php

    r49239 r50464  
    1414         */
    1515        public function test_unfiltered_emoji_cdns() {
     16                // `_print_emoji_detection_script()` assumes `wp-includes/js/wp-emoji-loader.js` is present:
     17                self::touch( ABSPATH . WPINC . '/js/wp-emoji-loader.js' );
    1618                $output = get_echo( '_print_emoji_detection_script' );
    1719
    … …  
    3234                add_filter( 'emoji_svg_url', array( $this, '_filtered_emoji_svn_cdn' ) );
    3335
     36                // `_print_emoji_detection_script()` assumes `wp-includes/js/wp-emoji-loader.js` is present:
     37                self::touch( ABSPATH . WPINC . '/js/wp-emoji-loader.js' );
    3438                $output = get_echo( '_print_emoji_detection_script' );
    3539
    … …  
    5357                add_filter( 'emoji_url', array( $this, '_filtered_emoji_png_cdn' ) );
    5458
     59                // `_print_emoji_detection_script()` assumes `wp-includes/js/wp-emoji-loader.js` is present:
     60                self::touch( ABSPATH . WPINC . '/js/wp-emoji-loader.js' );
    5561                $output = get_echo( '_print_emoji_detection_script' );
    5662
Note: See TracChangeset for help on using the changeset viewer.