MediaWiki  REL1_19
BlockTest Class Reference

Database Blocking More...

Inheritance diagram for BlockTest:
Collaboration diagram for BlockTest:

List of all members.

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

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

Reimplemented from MediaWikiTestCase.

Definition at line 20 of file BlockTest.php.

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

Here is the call graph for this function:

Definition at line 118 of file BlockTest.php.

debug function : dump the ipblocks table

Definition at line 58 of file BlockTest.php.

References print.

Reimplemented from MediaWikiLangTestCase.

Definition at line 14 of file BlockTest.php.

References $wgContLang, and Language\factory().

Here is the call graph for this function:

per bug 26425

Definition at line 78 of file BlockTest.php.

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Definition at line 66 of file BlockTest.php.

References Block\newFromID(), and Block\newFromTarget().

Here is the call graph for this function:


Member Data Documentation

BlockTest::$block [private]
BlockTest::$blockId [private]

Definition at line 12 of file BlockTest.php.

BlockTest::$madeAt

Definition at line 9 of file BlockTest.php.


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