From 42d51e4e2edba5b03bfad7b01922c00b240dc3a8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 5 Jul 2020 12:50:47 +0000 Subject: [PATCH] Tests: Remove `ja_JP` locale from `Tests_DB::test_locale_floats()`. This test is only relevant for locales using a comma as a decimal separator, while `ja_JP` uses a dot. Props gh640, johnjamesjacoby, SergeyBiryukov. Fixes #49690. git-svn-id: https://develop.svn.wordpress.org/trunk@48317 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/db.php b/tests/phpunit/tests/db.php index 12a601f9c9..c3d43b1fa3 100644 --- a/tests/phpunit/tests/db.php +++ b/tests/phpunit/tests/db.php @@ -90,7 +90,7 @@ class Tests_DB extends WP_UnitTestCase { $current_locales = explode( ';', setlocale( LC_ALL, 0 ) ); // Switch to a locale using comma as a decimal point separator. - $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES', 'ja_JP.utf8', 'ja_JP' ); + $flag = setlocale( LC_ALL, 'ru_RU.utf8', 'rus', 'fr_FR.utf8', 'fr_FR', 'de_DE.utf8', 'de_DE', 'es_ES.utf8', 'es_ES' ); if ( false === $flag ) { $this->markTestSkipped( 'No European locales available for testing' ); }