From 7a5aaad7424e77909a54809cc9b348b86c3dc0b7 Mon Sep 17 00:00:00 2001 From: TTO Date: Sat, 7 Jan 2017 02:27:23 +0000 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.20.1