jenkins-bot has submitted this change and it was merged. Change subject: Replace tests with language codes 'sr-ec' and 'sr-el' ......................................................................
Replace tests with language codes 'sr-ec' and 'sr-el' The language codes 'sr-ec' and 'sr-el' get replaced with the BCP 47 conform language codes 'sr-cyrl' and 'sr-latn' in core by I75da0af35a2066e7963e50c56c99daf1e07c55e6. To fullfil the integration tests for extensions first the old language codes in the tests must get replaced. This change replaces 'sr-ec' and 'sr-el' with 'kk-cyrl' and 'kk-latn'. Bug: T117845 Change-Id: Idca04cd5b1f9b362f89a7b7b3581c5f5736b88c5 --- M lib/tests/phpunit/LanguageFallbackChainFactoryTest.php M lib/tests/phpunit/LanguageFallbackChainTest.php 2 files changed, 10 insertions(+), 6 deletions(-) Approvals: Thiemo Mättig (WMDE): Looks good to me, approved jenkins-bot: Verified diff --git a/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php b/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php index 1202b57..4f98048 100644 --- a/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php +++ b/lib/tests/phpunit/LanguageFallbackChainFactoryTest.php @@ -233,10 +233,14 @@ ) ), array( 'ii', LanguageFallbackChainFactory::FALLBACK_OTHERS, array( 'zh-cn', 'zh-hans', 'en' ) ), - array( 'sr', LanguageFallbackChainFactory::FALLBACK_SELF | LanguageFallbackChainFactory::FALLBACK_VARIANTS, array( - 'sr', - array( 'sr', 'sr-ec' ), - array( 'sr', 'sr-el' ), + array( 'kk', LanguageFallbackChainFactory::FALLBACK_SELF | LanguageFallbackChainFactory::FALLBACK_VARIANTS, array( + 'kk', + array( 'kk', 'kk-cyrl' ), + array( 'kk', 'kk-latn' ), + array( 'kk', 'kk-arab' ), + array( 'kk', 'kk-kz' ), + array( 'kk', 'kk-tr' ), + array( 'kk', 'kk-cn' ), ) ), ); } diff --git a/lib/tests/phpunit/LanguageFallbackChainTest.php b/lib/tests/phpunit/LanguageFallbackChainTest.php index 3c3d264..5059fb7 100644 --- a/lib/tests/phpunit/LanguageFallbackChainTest.php +++ b/lib/tests/phpunit/LanguageFallbackChainTest.php @@ -94,12 +94,12 @@ ), ), array( - 'sr-ec', + 'kk-cyrl', LanguageFallbackChainFactory::FALLBACK_SELF | LanguageFallbackChainFactory::FALLBACK_VARIANTS, $data, null, ), - array( 'sr-ec', LanguageFallbackChainFactory::FALLBACK_ALL, $data, array( + array( 'kk-cyrl', LanguageFallbackChainFactory::FALLBACK_ALL, $data, array( // Shouldn't be converted to Cyrillic ('фоо') as this specific // value ('foo') is taken from the English label. 'value' => 'foo', -- To view, visit https://gerrit.wikimedia.org/r/323180 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Idca04cd5b1f9b362f89a7b7b3581c5f5736b88c5 Gerrit-PatchSet: 5 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Fomafix <foma...@googlemail.com> Gerrit-Reviewer: Fomafix <foma...@googlemail.com> Gerrit-Reviewer: Thiemo Mättig (WMDE) <thiemo.maet...@wikimedia.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits