From 5c41e3af9076b45c9773c0d906fcf685196770a9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 5 Jul 2020 20:27:52 +0000 Subject: [PATCH] Docs: Fix typos in comments in `tests/dependencies/jquery.php`. Props hareesh-pillai. See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48325 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/dependencies/jquery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/dependencies/jquery.php b/tests/phpunit/tests/dependencies/jquery.php index 1d763b0382..1d38833992 100644 --- a/tests/phpunit/tests/dependencies/jquery.php +++ b/tests/phpunit/tests/dependencies/jquery.php @@ -23,7 +23,7 @@ class Tests_Dependencies_jQuery extends WP_UnitTestCase { $this->assertInstanceOf( '_WP_Dependency', $object ); // As of 5.5 jQuery 1.12.4 is loaded without Migrate 1.4.1. - // Disable, but keep the followint test for 5.6 when jQuery would be updated to 3.5.1+ and + // Disable, but keep the following test for 5.6 when jQuery would be updated to 3.5.1+ and // the latest Migrate will be used. /* $this->assertEqualSets( $object->deps, array_keys( $jquery_scripts ) ); @@ -119,8 +119,8 @@ class Tests_Dependencies_jQuery extends WP_UnitTestCase { $scripts->add_data( $dep, 'group', 1 ); } - // Match only one script tag fopr 5.5, revert to `{2}` for 5.6. - $this->expectOutputRegex( '/^(?:]+><\/script>\\n)$/' ); + // Match only one script tag for 5.5, revert to `{2}` for 5.6. + $this->expectOutputRegex( '/^(?:]+><\/script>\\n){1}$/' ); $scripts->do_items( false, 0 ); $this->assertNotContains( 'jquery', $scripts->done );