Add tests for magic variables (using $wgSitename) and nonexistant templates.
authorWil Mahan <wmahan@users.mediawiki.org>
Thu, 23 Sep 2004 06:41:46 +0000 (06:41 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Thu, 23 Sep 2004 06:41:46 +0000 (06:41 +0000)
Tests for existing templates will be a bit more difficult. ;)

maintenance/parserTests.txt

index 411d905..a7b9b22 100644 (file)
@@ -594,3 +594,27 @@ Mixed list
 </li></ul>
 !! end
 
+###
+### Magic variables
+###
+!! test
+Magic variables
+!! input
+{{SITENAME}}
+!! result
+<p>MediaWiki
+</p>
+!! end
+
+###
+### Nonexistant template
+###
+!! test
+Nonexistant template
+!! input
+{{thistemplatedoesnotexist}}
+!! result
+<p><a href="/index.php?title=Template:Thistemplatedoesnotexist&amp;action=edit" class="new" title="Template:Thistemplatedoesnotexist">Template:Thistemplatedoesnotexist</a>
+</p>
+!! end
+