r93666 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93665‎ | r93666 | r93667 >
Date:22:44, 1 August 2011
Author:raindrift
Status:ok
Tags:
Comment:
checking in tests that were missed in r93659
Modified paths:
  • /trunk/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php (modified) (history)
  • /trunk/extensions/TitleBlacklist/tests/testSource (modified) (history)

Diff [purge]

Index: trunk/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php
@@ -51,7 +51,14 @@
5252 "The title \"bar\" has been banned from creation.\nIt matches the following blacklist entry: <code>[Bb]ar #example blacklist entry</code>",
5353 'Listed title error text is as expected'
5454 );
 55+
5556 $this->assertEquals(
 57+ $listed[0]['titleblacklist']['message'],
 58+ "titleblacklist-forbidden-edit",
 59+ 'Correct blacklist message name is returned'
 60+ );
 61+
 62+ $this->assertEquals(
5663 $listed[0]['titleblacklist']['line'],
5764 "[Bb]ar #example blacklist entry",
5865 'Correct blacklist line is returned'
Index: trunk/extensions/TitleBlacklist/tests/testSource
@@ -1,2 +1,3 @@
22 [Bb]ar #example blacklist entry
33 .*[Ff]ail.*
 4+.*[Nn]yancat.* <errmsg=blacklisted-nyancat>

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93659Added raw message name to output, so localization can happen on the client si...raindrift21:36, 1 August 2011

Status & tagging log