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/oembed/getResponseData.php

    r50401 r50464  
    66 */
    77class Tests_oEmbed_Response_Data extends WP_UnitTestCase {
     8        public function setUp() {
     9                parent::setUp();
     10
     11                // `get_post_embed_html()` assumes `wp-includes/js/wp-embed.js` is present:
     12                self::touch( ABSPATH . WPINC . '/js/wp-embed.js' );
     13        }
     14
    815        function test_get_oembed_response_data_non_existent_post() {
    916                $this->assertFalse( get_oembed_response_data( 0, 100 ) );
Note: See TracChangeset for help on using the changeset viewer.