MediaWiki
REL1_24
|
Database Blocking More...
Public Member Functions | |
addDBData () | |
Stub. | |
dumpBlocks () | |
debug function : dump the ipblocks table | |
testBlockedUserCanNotCreateAccount () | |
Block::prevents | |
testBlocksOnXff ($xff, $exCount, $exResult) | |
providerXff Block::getBlocksForIPList Block::chooseBlock | |
testBug26425BlockTimestampDefaultsToTime () | |
per bug 26425 | |
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. | |
testCrappyCrossWikiBlocks () | |
Block::insert | |
testINewFromIDReturnsCorrectBlock () | |
Block::newFromID | |
testINewFromTargetReturnsCorrectBlock () | |
Block::newFromTarget | |
Static Public Member Functions | |
static | provideBug29116Data () |
static | providerXff () |
Protected Member Functions | |
addXffBlocks () | |
setUp () | |
Private Attributes | |
Block | $block |
* | |
$blockId | |
$madeAt |
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 23 of file BlockTest.php.
References $user, addXffBlocks(), block, User\newFromName(), Block\newFromTarget(), and wfTimestamp().
BlockTest::addXffBlocks | ( | ) | [protected] |
Definition at line 242 of file BlockTest.php.
References array(), as, User\newFromName(), IP\sanitizeIP(), IP\sanitizeRange(), Block\TYPE_IP, and Block\TYPE_RANGE.
Referenced by addDBData().
debug function : dump the ipblocks table
Definition at line 62 of file BlockTest.php.
static BlockTest::provideBug29116Data | ( | ) | [static] |
Definition at line 120 of file BlockTest.php.
References array().
static BlockTest::providerXff | ( | ) | [static] |
Definition at line 310 of file BlockTest.php.
References array().
BlockTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiLangTestCase.
Definition at line 15 of file BlockTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
Definition at line 131 of file BlockTest.php.
BlockTest::testBlocksOnXff | ( | $ | xff, |
$ | exCount, | ||
$ | exResult | ||
) |
providerXff Block::getBlocksForIPList Block::chooseBlock
Definition at line 360 of file BlockTest.php.
per bug 26425
Definition at line 93 of file BlockTest.php.
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.
provideBug29116Data Block::newFromTarget
Definition at line 111 of file BlockTest.php.
Definition at line 194 of file BlockTest.php.
Definition at line 83 of file BlockTest.php.
Definition at line 73 of file BlockTest.php.
*
Definition at line 9 of file BlockTest.php.
BlockTest::$blockId [private] |
Definition at line 13 of file BlockTest.php.
BlockTest::$madeAt [private] |
Definition at line 10 of file BlockTest.php.