Skip to content

Commit 4dd067f

Browse files
committed
Build/Test Tools: Fix file name references in [60219].
While it's true that package.json uses the format x.y.z, for the tests of other files using the same format it's best practice for the comments to reference the file being tested rather than provide a cool story about an unrelated file. Cool story. Follow up to [60219]. See #63390. git-svn-id: https://develop.svn.wordpress.org/trunk@60221 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4ce39f5 commit 4dd067f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/basic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function test_package_lock_json( $path ) {
9090
$package_lock_json = json_decode( $package_lock_json, true );
9191
list( $version ) = explode( '-', $GLOBALS['wp_version'] );
9292

93-
// package.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
93+
// package-lock.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
9494
if ( 1 === substr_count( $version, '.' ) ) {
9595
$version .= '.0';
9696
}
@@ -129,7 +129,7 @@ public function test_composer_json() {
129129
$composer_json = json_decode( $composer_json, true );
130130
list( $version ) = explode( '-', $GLOBALS['wp_version'] );
131131

132-
// package.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
132+
// composer.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
133133
if ( 1 === substr_count( $version, '.' ) ) {
134134
$version .= '.0';
135135
}

0 commit comments

Comments
 (0)