r92921 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92920‎ | r92921 | r92922 >
Date:00:23, 23 July 2011
Author:raindrift
Status:ok
Tags:
Comment:
Fixed unit test
Removed unnecessary method, re r92807
Modified paths:
  • /trunk/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php (modified) (history)
  • /trunk/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TitleBlacklist/tests/ApiQueryTitleBlacklistTest.php
@@ -48,7 +48,7 @@
4949 $this->assertEquals( $listed[0]['titleblacklist']['result'], 'error', 'Listed title returns error');
5050 $this->assertEquals(
5151 $listed[0]['titleblacklist']['error'],
52 - "The title \"bar\" has been banned from creation.\nIt matches the following blacklist entry: <code>[Bb]ar # example blacklist entry</code>",
 52+ "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 as expected'
5454 );
5555 }
Index: trunk/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php
@@ -101,10 +101,6 @@
102102 return 'Validate an article title, filename, or username against the TitleBlacklist.';
103103 }
104104
105 - public function getPossibleErrors() {
106 -
107 - }
108 -
109105 protected function getExamples() {
110106 return array(
111107 'api.php?action=titleblacklist&tbtitle=Foo',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92807removed cruft, followup to r92805raindrift22:10, 21 July 2011

Status & tagging log