|
MediaWiki
REL1_20
|


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 | |
Database Cache
Definition at line 7 of file GenderCacheTest.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 16 of file GenderCacheTest.php.
References $user, and User\newFromName().
Definition at line 92 of file GenderCacheTest.php.
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().