MediaWiki
REL1_19
|
Public Member Functions | |
addDBData () | |
Stub. | |
dataBug29116 () | |
dumpBlocks () | |
debug function : dump the ipblocks table | |
setUp () | |
testBug26425BlockTimestampDefaultsToTime () | |
per bug 26425 | |
testBug29116LoadWithEmptyIp ($vagueTarget) | |
This is the method previously used to load block info in CheckUser etc passing an empty value (empty string, null, etc) as the ip parameter bypasses IP lookup checks. | |
testBug29116NewFromTargetWithEmptyIp ($vagueTarget) | |
CheckUser since being changed to use Block::newFromTarget started failing because the new function didn't accept empty strings like Block::load() had. | |
testInitializerFunctionsReturnCorrectBlock () | |
Public Attributes | |
$madeAt | |
Private Attributes | |
$block | |
$blockId |
Database Blocking
Definition at line 7 of file BlockTest.php.
Stub.
If a test needs to add additional data to the database, it should implement this method and do so
Reimplemented from MediaWikiTestCase.
Definition at line 20 of file BlockTest.php.
References $user, User\newFromName(), Block\newFromTarget(), and wfTimestamp().
Definition at line 118 of file BlockTest.php.
debug function : dump the ipblocks table
Definition at line 58 of file BlockTest.php.
References print.
BlockTest::setUp | ( | ) |
Reimplemented from MediaWikiLangTestCase.
Definition at line 14 of file BlockTest.php.
References $wgContLang, and Language\factory().
per bug 26425
Definition at line 78 of file BlockTest.php.
BlockTest::testBug29116LoadWithEmptyIp | ( | $ | vagueTarget | ) |
This is the method previously used to load block info in CheckUser etc passing an empty value (empty string, null, etc) as the ip parameter bypasses IP lookup checks.
This stopped working with r84475 and friends: regression being fixed for bug 29116.
dataBug29116
Definition at line 93 of file BlockTest.php.
References $block, $ok, MediaWikiTestCase\hideDeprecated(), and User\idFromName().
BlockTest::testBug29116NewFromTargetWithEmptyIp | ( | $ | vagueTarget | ) |
CheckUser since being changed to use Block::newFromTarget started failing because the new function didn't accept empty strings like Block::load() had.
Regression bug 29116.
dataBug29116
Definition at line 113 of file BlockTest.php.
References $block, and Block\newFromTarget().
Definition at line 66 of file BlockTest.php.
References Block\newFromID(), and Block\newFromTarget().
BlockTest::$block [private] |
Definition at line 9 of file BlockTest.php.
Referenced by testBug29116LoadWithEmptyIp(), and testBug29116NewFromTargetWithEmptyIp().
BlockTest::$blockId [private] |
Definition at line 12 of file BlockTest.php.
BlockTest::$madeAt |
Definition at line 9 of file BlockTest.php.