MediaWiki
REL1_21
|
ContentHandler Database More...
Public Member Functions | |
setup () | |
tearDown () | |
testGetContentText_NonTextContent () | |
testGetContentText_Null () | |
testGetContentText_TextContent () | |
testGetDefaultModelFor ($title, $expectedModelId) | |
dataGetDefaultModelFor | |
testGetForTitle ($title, $expectedContentModel) | |
dataGetDefaultModelFor | |
testGetLocalizedName ($id, $expected) | |
dataGetLocalizedName | |
testGetPageLanguage ($title, $expected) | |
dataGetPageLanguage | |
testMakeContent ($data, $title, $modelId, $format, $expectedModelId, $expectedNativeData, $shouldFail) | |
dataMakeContent | |
testRunLegacyHooks () | |
Static Public Member Functions | |
static | dataGetDefaultModelFor () |
static | dataGetLocalizedName () |
static | dataGetPageLanguage () |
static | dataMakeContent () |
static | dummyHookHandler ($foo, &$text, $bar) |
ContentHandler Database
Definition at line 11 of file ContentHandlerTest.php.
static ContentHandlerTest::dataGetDefaultModelFor | ( | ) | [static] |
Definition at line 51 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dataGetLocalizedName | ( | ) | [static] |
Definition at line 88 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dataGetPageLanguage | ( | ) | [static] |
Definition at line 116 of file ContentHandlerTest.php.
static ContentHandlerTest::dataMakeContent | ( | ) | [static] |
Definition at line 212 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dummyHookHandler | ( | $ | foo, |
&$ | text, | ||
$ | bar | ||
) | [static] |
Definition at line 274 of file ContentHandlerTest.php.
Definition at line 13 of file ContentHandlerTest.php.
References $wgContLang, array(), MWNamespace\getCanonicalNamespaces(), global, and MediaWikiTestCase\setMwGlobals().
Reimplemented from MediaWikiTestCase.
Definition at line 41 of file ContentHandlerTest.php.
References $wgContLang, MWNamespace\getCanonicalNamespaces(), and global.
Definition at line 184 of file ContentHandlerTest.php.
References fail, ContentHandler\getContentText(), and global.
Definition at line 148 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and global.
Definition at line 166 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and global.
ContentHandlerTest::testGetDefaultModelFor | ( | $ | title, |
$ | expectedModelId | ||
) |
dataGetDefaultModelFor
Definition at line 74 of file ContentHandlerTest.php.
References $title, ContentHandler\getDefaultModelFor(), and Title\newFromText().
ContentHandlerTest::testGetForTitle | ( | $ | title, |
$ | expectedContentModel | ||
) |
dataGetDefaultModelFor
Definition at line 82 of file ContentHandlerTest.php.
References $title, ContentHandler\getForTitle(), and Title\newFromText().
ContentHandlerTest::testGetLocalizedName | ( | $ | id, |
$ | expected | ||
) |
dataGetLocalizedName
Definition at line 101 of file ContentHandlerTest.php.
References $name, and ContentHandler\getLocalizedName().
ContentHandlerTest::testGetPageLanguage | ( | $ | title, |
$ | expected | ||
) |
dataGetPageLanguage
Definition at line 135 of file ContentHandlerTest.php.
References $title, ContentHandler\getForTitle(), Title\newFromText(), and wfGetLangObj().
ContentHandlerTest::testMakeContent | ( | $ | data, |
$ | title, | ||
$ | modelId, | ||
$ | format, | ||
$ | expectedModelId, | ||
$ | expectedNativeData, | ||
$ | shouldFail | ||
) |
dataMakeContent
Definition at line 235 of file ContentHandlerTest.php.
References $title, fail, ContentHandler\makeContent(), and Title\newFromText().
Definition at line 264 of file ContentHandlerTest.php.
References $ok, array(), Hooks\register(), and ContentHandler\runLegacyHooks().