MediaWiki
master
|
Database ^--- needed for language cache stuff More...
Public Member Functions | |
flattenErrorsArray ($errors) | |
provideBaseTitleCases () | |
provideCasesForGetpageviewlanguage () | |
provideSubpageTitleCases () | |
testBug31100FixSpecialName ($text, $expectedParam) | |
provideBug31100 | |
testExtractingBaseTextFromTitle ($title, $expected, $msg='') | |
provideBaseTitleCases | |
testExtractingRootTextFromTitle ($title, $expected, $msg='') | |
provideRootTitleCases | |
testExtractingSubpageTextFromTitle ($title, $expected, $msg='') | |
testGetpageviewlanguage ($expected, $titleText, $contLang, $lang, $variant, $msg= '') | |
provideCasesForGetpageviewlanguage | |
testIsValidMoveOperation ($source, $target, $expected) | |
Auth-less test of Title::isValidMoveOperation. | |
testLegalChars () | |
Static Public Member Functions | |
static | provideBug31100 () |
static | provideRootTitleCases () |
static | provideTestIsValidMoveOperation () |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
Database ^--- needed for language cache stuff
Definition at line 8 of file TitleTest.php.
TitleTest::flattenErrorsArray | ( | $ | errors | ) |
Definition at line 82 of file TitleTest.php.
References $error, $result, array(), and as.
Referenced by testIsValidMoveOperation().
Definition at line 170 of file TitleTest.php.
static TitleTest::provideBug31100 | ( | ) | [static] |
Definition at line 51 of file TitleTest.php.
References array().
Definition at line 120 of file TitleTest.php.
References array().
static TitleTest::provideRootTitleCases | ( | ) | [static] |
Definition at line 189 of file TitleTest.php.
Definition at line 209 of file TitleTest.php.
static TitleTest::provideTestIsValidMoveOperation | ( | ) | [static] |
Definition at line 90 of file TitleTest.php.
References array().
TitleTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 10 of file TitleTest.php.
References array(), Language\factory(), and MediaWikiTestCase\setMwGlobals().
TitleTest::testBug31100FixSpecialName | ( | $ | text, |
$ | expectedParam | ||
) |
provideBug31100
Definition at line 39 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testExtractingBaseTextFromTitle | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
provideBaseTitleCases
Definition at line 162 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testExtractingRootTextFromTitle | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
provideRootTitleCases
Definition at line 181 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testExtractingSubpageTextFromTitle | ( | $ | title, |
$ | expected, | ||
$ | msg = '' |
||
) |
Definition at line 201 of file TitleTest.php.
References $title, and Title\newFromText().
TitleTest::testGetpageviewlanguage | ( | $ | expected, |
$ | titleText, | ||
$ | contLang, | ||
$ | lang, | ||
$ | variant, | ||
$ | msg = '' |
||
) |
provideCasesForGetpageviewlanguage
Definition at line 100 of file TitleTest.php.
References $title, $wgContLang, $wgLang, Language\factory(), global, and Title\newFromText().
TitleTest::testIsValidMoveOperation | ( | $ | source, |
$ | target, | ||
$ | expected | ||
) |
Auth-less test of Title::isValidMoveOperation.
Database
string | $source | |
string | $target | |
array | string | true | $expected | Required error provideTestIsValidMoveOperation |
Definition at line 68 of file TitleTest.php.
References $error, $source, $title, array(), as, flattenErrorsArray(), and Title\newFromText().
Definition at line 23 of file TitleTest.php.
References as, and Title\legalChars().