From: TTO
Date: Sat, 7 Jan 2017 02:27:23 +0000 (+0000)
Subject: Additional test for {{PAGELANGUAGE}} magic word
X-Git-Tag: 1.31.0-rc.0~4372
X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=7a5aaad7424e77909a54809cc9b348b86c3dc0b7;p=lhc%2Fweb%2Fwiklou.git
Additional test for {{PAGELANGUAGE}} magic word
Make sure it returns the default content language on pages where the
language is not explicitly set.
Bug: T59603
Change-Id: I7b1437bf1650166c8be77e5bd84181c577961f27
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 16d724d964..3853a12520 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -10300,6 +10300,15 @@ language=fr
!! end
+!! test
+Magic Word: {{PAGELANGUAGE}} on a page with no explicitly set language
+!! wikitext
+{{PAGELANGUAGE}}
+!! html
+en
+
+!! end
+
!! test
Case-sensitive magic words, when cased differently, should just be template transclusions
!! wikitext