MediaWiki  master
TitleTest Class Reference

Database ^--- needed for language cache stuff More...

Inheritance diagram for TitleTest:
Collaboration diagram for TitleTest:

List of all members.

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.

Detailed Description

Database ^--- needed for language cache stuff

Definition at line 8 of file TitleTest.php.


Member Function Documentation

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.

References array(), and message.

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.

References array(), and message.

Definition at line 209 of file TitleTest.php.

References array(), and message.

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 = '' 
)
Todo:
Handle $wgNamespacesWithSubpages cases provideSubpageTitleCases

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

Parameters:
string$source
string$target
array | string | true$expectedRequired 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().


The documentation for this class was generated from the following file: