From 5f257b49316ceb25fea42aba5a8c700b88aed13e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 14 Nov 2020 17:20:57 +0000 Subject: [PATCH] Build/Test Tools: Improve the reliability of the test that ensures correct dependency order when inline scripts are used. This test already ensures `WP_Scripts->do_concat` is true, therefore it has no dependency on `SCRIPT_DEBUG` being false. This means the test can run in an environment where the `.min` suffix is not used. This change allows for the test to pass in this situation. See #36392, #51734, #51344 git-svn-id: https://develop.svn.wordpress.org/trunk@49601 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/dependencies/scripts.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/dependencies/scripts.php b/tests/phpunit/tests/dependencies/scripts.php index afe27fd09d..1035490b4a 100644 --- a/tests/phpunit/tests/dependencies/scripts.php +++ b/tests/phpunit/tests/dependencies/scripts.php @@ -712,15 +712,16 @@ JS; $wp_scripts->do_concat = true; $ver = get_bloginfo( 'version' ); + $suffix = wp_scripts_get_suffix(); $expected = "\n"; $expected .= "\n"; $expected .= "\n"; - $expected .= "\n"; + $expected .= "\n"; $expected .= "\n"; - $expected .= "\n"; - $expected .= "\n"; + $expected .= "\n"; + $expected .= "\n"; $expected .= "\n"; - $expected .= "\n"; + $expected .= "\n"; $expected .= "\n"; $expected .= "\n";