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/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?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