MediaWiki  REL1_22
GenderCacheTest Class Reference

Database Cache More...

Inheritance diagram for GenderCacheTest:
Collaboration diagram for GenderCacheTest:

List of all members.

Public Member Functions

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

Static Public Member Functions

static provideStripSubpages ()
static provideUserGenders ()

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

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 95 of file GenderCacheTest.php.

References array().

Definition at line 70 of file GenderCacheTest.php.

References array().

GenderCacheTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiLangTestCase.

Definition at line 9 of file GenderCacheTest.php.

References global.

GenderCacheTest::testStripSubpages ( pageWithSubpage,
expectedGender 
)

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

provideStripSubpages GenderCache::getGenderOf

Definition at line 89 of file GenderCacheTest.php.

References GenderCache\singleton().

GenderCacheTest::testUserName ( username,
expectedGender 
)

test usernames

provideUserGenders GenderCache::getGenderOf

Definition at line 51 of file GenderCacheTest.php.

References GenderCache\singleton().

GenderCacheTest::testUserObjects ( username,
expectedGender 
)

genderCache should work with user objects, too

provideUserGenders GenderCache::getGenderOf

Definition at line 63 of file GenderCacheTest.php.

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


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