MediaWiki
REL1_22
|
Database Cache More...
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. |
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().
static GenderCacheTest::provideStripSubpages | ( | ) | [static] |
Definition at line 95 of file GenderCacheTest.php.
References array().
static GenderCacheTest::provideUserGenders | ( | ) | [static] |
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().