Make WordPress Core

Changeset 45458


Ignore:
Timestamp:
05/28/2019 04:18:53 AM (5 years ago)
Author:
azaozz
Message:

Fix unit tests after [45456]. The query string is a bit different but the results are the same.

See #45346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r44744 r45458  
    119119
    120120        $ver      = get_bloginfo( 'version' );
    121         $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=one,two,three&amp;ver={$ver}'></script>\n";
     121        $expected = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=one,two,three&amp;ver={$ver}'></script>\n";
    122122
    123123        $this->assertEquals( $expected, $print_scripts );
     
    563563
    564564        $ver       = get_bloginfo( 'version' );
    565         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=one&amp;ver={$ver}'></script>\n";
     565        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=one&amp;ver={$ver}'></script>\n";
    566566        $expected .= "<script type='text/javascript' src='/directory/two.js?ver={$ver}'></script>\n";
    567567        $expected .= "<script type='text/javascript'>\nconsole.log(\"after two\");\n</script>\n";
     
    615615
    616616        $ver       = get_bloginfo( 'version' );
    617         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate&amp;ver={$ver}'></script>\n";
     617        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=jquery-core,jquery-migrate&amp;ver={$ver}'></script>\n";
    618618        $expected .= "<script type='text/javascript' src='http://example.com'></script>\n";
    619619        $expected .= "<script type='text/javascript'>\nconsole.log(\"after\");\n</script>\n";
     
    640640
    641641        $ver       = get_bloginfo( 'version' );
    642         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate&amp;ver={$ver}'></script>\n";
     642        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=jquery-core,jquery-migrate&amp;ver={$ver}'></script>\n";
    643643        $expected .= "<!--[if gte IE 9]>\n";
    644644        $expected .= "<script type='text/javascript' src='http://example.com'></script>\n";
     
    668668
    669669        $ver       = get_bloginfo( 'version' );
    670         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate&amp;ver={$ver}'></script>\n";
     670        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=jquery-core,jquery-migrate&amp;ver={$ver}'></script>\n";
    671671        $expected .= "<script type='text/javascript'>\nconsole.log(\"before\");\n</script>\n";
    672672        $expected .= "<script type='text/javascript' src='http://example.com'></script>\n";
     
    693693
    694694        $ver       = get_bloginfo( 'version' );
    695         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate,wp-a11y&amp;ver={$ver}'></script>\n";
     695        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=jquery-core,jquery-migrate,wp-a11y&amp;ver={$ver}'></script>\n";
    696696        $expected .= "<script type='text/javascript'>\nconsole.log(\"before\");\n</script>\n";
    697697        $expected .= "<script type='text/javascript' src='http://example.com'></script>\n";
     
    779779
    780780        $ver       = get_bloginfo( 'version' );
    781         $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=one,two&amp;ver={$ver}'></script>\n";
     781        $expected  = "<script type='text/javascript' src='/wp-admin/load-scripts.php?c=0&amp;load%5Bchunk_0%5D=one,two&amp;ver={$ver}'></script>\n";
    782782        $expected .= "<script type='text/javascript'>\nconsole.log(\"before three\");\n</script>\n";
    783783        $expected .= "<script type='text/javascript' src='/wp-includes/js/script3.js?ver={$ver}'></script>\n";
Note: See TracChangeset for help on using the changeset viewer.