MediaWiki
REL1_23
|
Database ^--- needed for language cache stuff More...
Provides test parameter values for testIsValidMoveOperation()
Definition at line 270 of file TitleTest.php.
References array().
Provides test parameter values for testWgWhitelistReadRegexp()
Definition at line 345 of file TitleTest.php.
References array().
TitleTest::flattenErrorsArray | ( | $ | errors | ) |
Definition at line 381 of file TitleTest.php.
References $error, $result, array(), and as.
Referenced by testIsValidMoveOperation(), and testWgWhitelistReadRegexp().
static TitleTest::provideBaseTitleCases | ( | ) | [static] |
Definition at line 472 of file TitleTest.php.
static TitleTest::provideBug31100 | ( | ) | [static] |
Definition at line 235 of file TitleTest.php.
References array().
static TitleTest::provideConvertByteClassToUnicodeClass | ( | ) | [static] |
Definition at line 149 of file TitleTest.php.
References array().
Definition at line 562 of file TitleTest.php.
References array().
static TitleTest::provideGetPageViewLanguage | ( | ) | [static] |
Definition at line 421 of file TitleTest.php.
References array().
Definition at line 541 of file TitleTest.php.
References array().
Definition at line 521 of file TitleTest.php.
References array().
static TitleTest::provideRootTitleCases | ( | ) | [static] |
Definition at line 492 of file TitleTest.php.
static TitleTest::provideSubpageTitleCases | ( | ) | [static] |
Definition at line 513 of file TitleTest.php.
static TitleTest::provideTestIsValidMoveOperation | ( | ) | [static] |
Definition at line 390 of file TitleTest.php.
References array().
TitleTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 10 of file TitleTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
TitleTest::testBug31100FixSpecialName | ( | $ | text, |
$ | expectedParam | ||
) |
provideBug31100 Title::fixSpecialName
Definition at line 223 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testConvertByteClassToUnicodeClass | ( | $ | byteClass, |
$ | unicodeClass | ||
) |
provideConvertByteClassToUnicodeClass Title::convertByteClassToUnicodeClass
Definition at line 214 of file TitleTest.php.
References Title\convertByteClassToUnicodeClass().
TitleTest::testGetBaseText | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
provideBaseTitleCases Title::getBaseText
Definition at line 464 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetFragment | ( | $ | full, |
$ | fragment | ||
) |
provideGetFragment
$full | |
$fragment |
Definition at line 586 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetPageViewLanguage | ( | $ | expected, |
$ | titleText, | ||
$ | contLang, | ||
$ | lang, | ||
$ | variant, | ||
$ | msg = '' |
||
) |
provideGetPageViewLanguage Title::getPageViewLanguage
Definition at line 401 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 484 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetSubpageText | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
Definition at line 505 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetTitleValue | ( | $ | text | ) |
provideGetTitleValue
Definition at line 552 of file TitleTest.php.
References $title, $value, and Title\newFromText().
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 |
Definition at line 253 of file TitleTest.php.
References $error, $source, $title, array(), as, flattenErrorsArray(), and Title\newFromText().
Definition at line 26 of file TitleTest.php.
References as, and Title\legalChars().
TitleTest::testNewFromTitleValue | ( | TitleValue $ | value | ) |
provideNewFromTitleValue
Definition at line 532 of file TitleTest.php.
References $title, TitleValue\getFragment(), TitleValue\getNamespace(), TitleValue\getText(), and Title\newFromTitleValue().
See also mediawiki.Title.test.js Title::secureAndSplit.
Definition at line 45 of file TitleTest.php.
References array(), as, Title\newFromText(), and MediaWikiTestCase\setMwGlobals().
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 288 of file TitleTest.php.
References $error, $source, $title, $wgUser, array(), as, flattenErrorsArray(), global, and Title\newFromDBkey().