MediaWiki
REL1_22
|
Database More...
Public Member Functions | |
__construct () | |
testIrcMsgForLogTypeBlock () | |
The testIrcMsgForAction* tests are supposed to cover the hacky LogFormatter::getIRCActionText / bug 34508. | |
testIrcMsgForLogTypeDelete () | |
LogFormatter::getIRCActionText | |
testIrcMsgForLogTypeMove () | |
LogFormatter::getIRCActionText | |
testIrcMsgForLogTypeNewusers () | |
LogFormatter::getIRCActionText | |
testIrcMsgForLogTypePatrol () | |
LogFormatter::getIRCActionText | |
testIrcMsgForLogTypeProtect () | |
LogFormatter::getIRCActionText | |
testIrcMsgForLogTypeUpload () | |
LogFormatter::getIRCActionText | |
Protected Member Functions | |
assertIRCComment ($expected, $type, $action, $params, $comment=null, $msg= '') | |
Protected Attributes | |
$context | |
$target | |
$title | |
$user | |
$user_comment |
Database
Definition at line 5 of file RecentChangeTest.php.
Definition at line 12 of file RecentChangeTest.php.
References RequestContext\newExtraneousContext(), User\newFromName(), Title\newFromText(), title, and user.
RecentChangeTest::assertIRCComment | ( | $ | expected, |
$ | type, | ||
$ | action, | ||
$ | params, | ||
$ | comment = null , |
||
$ | msg = '' |
||
) | [protected] |
$expected | String Expected IRC text without colors codes |
$type | String Log type (move, delete, suppress, patrol ...) |
$action | String A log type action |
$params | |
$comment | String (optional) A comment for the log action |
$msg | String (optional) A message for PHPUnit :-) |
Definition at line 258 of file RecentChangeTest.php.
References $comment, $params, IRCColourfulRCFeedFormatter\cleanupForIRC(), LogFormatter\newFromEntry(), title, and user.
Referenced by testIrcMsgForLogTypeBlock(), testIrcMsgForLogTypeDelete(), testIrcMsgForLogTypeMove(), testIrcMsgForLogTypeNewusers(), testIrcMsgForLogTypePatrol(), testIrcMsgForLogTypeProtect(), and testIrcMsgForLogTypeUpload().
The testIrcMsgForAction* tests are supposed to cover the hacky LogFormatter::getIRCActionText / bug 34508.
Third parties bots listen to those messages. They are clever enough to fetch the i18n messages from the wiki and then analyze the IRC feed to reverse engineer the $1, $2 messages. One thing bots can not detect is when MediaWiki change the meaning of a message like what happened when we deployed 1.19. $1 became the user performing the action which broke basically all bots around.
Should cover the following log actions (which are most commonly used by bots):
As well as the following Auto Edit Summaries:
Definition at line 59 of file RecentChangeTest.php.
References array(), and assertIRCComment().
LogFormatter::getIRCActionText
Definition at line 81 of file RecentChangeTest.php.
References array(), and assertIRCComment().
LogFormatter::getIRCActionText
Definition at line 130 of file RecentChangeTest.php.
References array(), and assertIRCComment().
LogFormatter::getIRCActionText
Definition at line 104 of file RecentChangeTest.php.
References array(), and assertIRCComment().
LogFormatter::getIRCActionText
Definition at line 157 of file RecentChangeTest.php.
References array(), and assertIRCComment().
LogFormatter::getIRCActionText
Definition at line 173 of file RecentChangeTest.php.
References array(), and assertIRCComment().
LogFormatter::getIRCActionText
Definition at line 207 of file RecentChangeTest.php.
References array(), and assertIRCComment().
RecentChangeTest::$context [protected] |
Definition at line 10 of file RecentChangeTest.php.
RecentChangeTest::$target [protected] |
Definition at line 7 of file RecentChangeTest.php.
RecentChangeTest::$title [protected] |
Definition at line 6 of file RecentChangeTest.php.
RecentChangeTest::$user [protected] |
Definition at line 8 of file RecentChangeTest.php.
RecentChangeTest::$user_comment [protected] |
Definition at line 9 of file RecentChangeTest.php.