MediaWiki  REL1_20
GenderCacheTest Class Reference

Database Cache More...

Inheritance diagram for GenderCacheTest:
Collaboration diagram for GenderCacheTest:

List of all members.

Public Member Functions

 addDBData ()
 Stub.
 dataStripSubpages ()
 dataUserName ()
 setUp ()
 testStripSubpages ($pageWithSubpage, $expectedGender)
 test strip of subpages to avoid unnecessary queries against the never existing username
 testUserName ($username, $expectedGender)
 test usernames
 testUserObjects ($username, $expectedGender)
 genderCache should work with user objects, too

Detailed Description

Database Cache

Definition at line 7 of file GenderCacheTest.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 16 of file GenderCacheTest.php.

References $user, and User\newFromName().

Definition at line 68 of file GenderCacheTest.php.

Reimplemented from MediaWikiLangTestCase.

Definition at line 9 of file GenderCacheTest.php.

GenderCacheTest::testStripSubpages ( pageWithSubpage,
expectedGender 
)

test strip of subpages to avoid unnecessary queries against the never existing username

dataStripSubpages

Definition at line 86 of file GenderCacheTest.php.

References GenderCache\singleton().

GenderCacheTest::testUserName ( username,
expectedGender 
)

test usernames

dataUserName

Definition at line 50 of file GenderCacheTest.php.

References GenderCache\singleton().

GenderCacheTest::testUserObjects ( username,
expectedGender 
)

genderCache should work with user objects, too

dataUserName

Definition at line 61 of file GenderCacheTest.php.

References $user, User\newFromName(), and GenderCache\singleton().


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