MediaWiki
REL1_24
|
Definition at line 6 of file TitleTest.php.
Provides test parameter values for testWgWhitelistReadRegexp()
Definition at line 379 of file TitleTest.php.
References array().
TitleTest::flattenErrorsArray | ( | $ | errors | ) |
Definition at line 415 of file TitleTest.php.
References $error, $result, array(), and as.
Referenced by testIsValidMoveOperation(), and testWgWhitelistReadRegexp().
static TitleTest::provideBaseTitleCases | ( | ) | [static] |
Definition at line 501 of file TitleTest.php.
static TitleTest::provideConvertByteClassToUnicodeClass | ( | ) | [static] |
Definition at line 170 of file TitleTest.php.
References array().
static TitleTest::provideGetFragment | ( | ) | [static] |
Definition at line 591 of file TitleTest.php.
References array().
static TitleTest::provideGetPageViewLanguage | ( | ) | [static] |
Definition at line 450 of file TitleTest.php.
References array().
static TitleTest::provideGetTitleValue | ( | ) | [static] |
Definition at line 570 of file TitleTest.php.
References array().
static TitleTest::provideInvalidSecureAndSplit | ( | ) | [static] |
Definition at line 79 of file TitleTest.php.
References array().
static TitleTest::provideIsAlwaysKnown | ( | ) | [static] |
Definition at line 631 of file TitleTest.php.
References array().
static TitleTest::provideNewFromTitleValue | ( | ) | [static] |
Definition at line 550 of file TitleTest.php.
References array().
static TitleTest::provideRootTitleCases | ( | ) | [static] |
Definition at line 521 of file TitleTest.php.
static TitleTest::provideSpecialNamesWithAndWithoutParameter | ( | ) | [static] |
Definition at line 259 of file TitleTest.php.
References array().
static TitleTest::provideSubpageTitleCases | ( | ) | [static] |
Definition at line 542 of file TitleTest.php.
static TitleTest::provideTestIsValidMoveOperation | ( | ) | [static] |
Definition at line 293 of file TitleTest.php.
References array().
static TitleTest::provideValidSecureAndSplit | ( | ) | [static] |
Definition at line 42 of file TitleTest.php.
References array().
TitleTest::secureAndSplitGlobals | ( | ) | [private] |
Definition at line 130 of file TitleTest.php.
References array(), and MediaWikiTestCase\setMwGlobals().
Referenced by testSecureAndSplitInvalid(), and testSecureAndSplitValid().
TitleTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 7 of file TitleTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
TitleTest::testConvertByteClassToUnicodeClass | ( | $ | byteClass, |
$ | unicodeClass | ||
) |
provideConvertByteClassToUnicodeClass Title::convertByteClassToUnicodeClass
Definition at line 235 of file TitleTest.php.
References Title\convertByteClassToUnicodeClass().
TitleTest::testFixSpecialNameRetainsParameter | ( | $ | text, |
$ | expectedParam | ||
) |
provideSpecialNamesWithAndWithoutParameter Title::fixSpecialName
Definition at line 243 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetBaseText | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
provideBaseTitleCases Title::getBaseText
Definition at line 493 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetFragment | ( | $ | full, |
$ | fragment | ||
) |
provideGetFragment
string | $full | |
string | $fragment |
Definition at line 615 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetPageViewLanguage | ( | $ | expected, |
$ | titleText, | ||
$ | contLang, | ||
$ | lang, | ||
$ | variant, | ||
$ | msg = '' |
||
) |
provideGetPageViewLanguage Title::getPageViewLanguage
Definition at line 428 of file TitleTest.php.
References $title, $wgContLang, $wgLang, Language\factory(), global, and Title\newFromText().
TitleTest::testGetRootText | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
provideRootTitleCases Title::getRootText
Definition at line 513 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetSubpageText | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
Definition at line 534 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetTitleValue | ( | $ | text | ) |
provideGetTitleValue
Definition at line 581 of file TitleTest.php.
References $title, $value, and Title\newFromText().
TitleTest::testIsAlwaysKnown | ( | $ | page, |
$ | isKnown | ||
) |
Title::isAlwaysKnown provideIsAlwaysKnown
string | $page | |
bool | $isKnown |
Definition at line 626 of file TitleTest.php.
References $title, and Title\newFromText().
Definition at line 646 of file TitleTest.php.
References $title, and Title\makeTitle().
TitleTest::testIsValidMoveOperation | ( | $ | source, |
$ | target, | ||
$ | expected | ||
) |
Auth-less test of Title::isValidMoveOperation.
Database
string | $source | |
string | $target | |
array | string | bool | $expected | Required error provideTestIsValidMoveOperation Title::isValidMoveOperation Title::validateFileMoveOperation |
Definition at line 278 of file TitleTest.php.
References $error, $source, $title, array(), as, flattenErrorsArray(), Title\newFromText(), and MediaWikiTestCase\setMwGlobals().
Definition at line 23 of file TitleTest.php.
References as, and Title\legalChars().
TitleTest::testNewFromTitleValue | ( | TitleValue $ | value | ) |
provideNewFromTitleValue
Definition at line 561 of file TitleTest.php.
References $title, TitleValue\getFragment(), TitleValue\getNamespace(), TitleValue\getText(), and Title\newFromTitleValue().
TitleTest::testSecureAndSplitInvalid | ( | $ | text | ) |
See also mediawiki.Title.test.js Title::secureAndSplit provideInvalidSecureAndSplit.
Definition at line 165 of file TitleTest.php.
References Title\newFromText(), and secureAndSplitGlobals().
TitleTest::testSecureAndSplitValid | ( | $ | text | ) |
See also mediawiki.Title.test.js Title::secureAndSplit provideValidSecureAndSplit.
Definition at line 154 of file TitleTest.php.
References Title\newFromText(), and secureAndSplitGlobals().
TitleTest::testWgWhitelistReadRegexp | ( | $ | whitelistRegexp, |
$ | source, | ||
$ | action, | ||
$ | expected | ||
) |
Auth-less test of Title::userCan.
array | $whitelistRegexp | |
string | $source | |
string | $action | |
array | string | bool | $expected | Required error |
Title::checkReadPermissions dataWgWhitelistReadRegexp
Definition at line 318 of file TitleTest.php.
References $error, $source, $title, $wgUser, array(), as, flattenErrorsArray(), global, and Title\newFromDBkey().