|
MediaWiki
REL1_23
|
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 224 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 106 of file BlockTest.php.
References array().
| static BlockTest::providerXff | ( | ) | [static] |
Definition at line 292 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 117 of file BlockTest.php.
| BlockTest::testBlocksOnXff | ( | $ | xff, |
| $ | exCount, | ||
| $ | exResult | ||
| ) |
providerXff Block::getBlocksForIPList Block::chooseBlock
Definition at line 342 of file BlockTest.php.
per bug 26425
Definition at line 87 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 101 of file BlockTest.php.
Definition at line 180 of file BlockTest.php.
Definition at line 80 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.