MediaWiki  REL1_24
BlockTest Class Reference

Database Blocking More...

Inheritance diagram for BlockTest:
Collaboration diagram for BlockTest:

List of all members.

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

Detailed Description

Database Blocking

Definition at line 7 of file BlockTest.php.


Member Function Documentation

Stub.

If a test needs to add additional data to the database, it should implement this method and do so

Since:
1.18

Reimplemented from MediaWikiTestCase.

Definition at line 23 of file BlockTest.php.

References $user, addXffBlocks(), block, User\newFromName(), Block\newFromTarget(), and wfTimestamp().

BlockTest::addXffBlocks ( ) [protected]

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().

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.

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.


Member Data Documentation

Block BlockTest::$block [private]

*

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.


The documentation for this class was generated from the following file: