MediaWiki
REL1_22
|
ContentHandler Database More...
ContentHandler Database
Definition at line 11 of file ContentHandlerTest.php.
static ContentHandlerTest::dataGetContentText_Null | ( | ) | [static] |
Definition at line 152 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dataGetContentText_TextContent | ( | ) | [static] |
Definition at line 173 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dataGetDefaultModelFor | ( | ) | [static] |
Definition at line 51 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dataGetLocalizedName | ( | ) | [static] |
Definition at line 90 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dataGetPageLanguage | ( | ) | [static] |
Definition at line 119 of file ContentHandlerTest.php.
static ContentHandlerTest::dataMakeContent | ( | ) | [static] |
Definition at line 235 of file ContentHandlerTest.php.
References array().
static ContentHandlerTest::dummyHookHandler | ( | $ | foo, |
&$ | text, | ||
$ | bar | ||
) | [static] |
Definition at line 300 of file ContentHandlerTest.php.
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
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.
ContentHandler::getContentText should have thrown an exception for non-text Content object MWException ContentHandler::getContentText.
Definition at line 199 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and MediaWikiTestCase\setMwGlobals().
ContentHandler::getContentText
Definition at line 222 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and MediaWikiTestCase\setMwGlobals().
ContentHandler::getContentText
Definition at line 210 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and MediaWikiTestCase\setMwGlobals().
ContentHandlerTest::testGetContentText_Null | ( | $ | contentHandlerTextFallback | ) |
dataGetContentText_Null ContentHandler::getContentText
Definition at line 164 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and MediaWikiTestCase\setMwGlobals().
ContentHandlerTest::testGetContentText_TextContent | ( | $ | contentHandlerTextFallback | ) |
dataGetContentText_TextContent ContentHandler::getContentText
Definition at line 185 of file ContentHandlerTest.php.
References ContentHandler\getContentText(), and MediaWikiTestCase\setMwGlobals().
ContentHandlerTest::testGetDefaultModelFor | ( | $ | title, |
$ | expectedModelId | ||
) |
dataGetDefaultModelFor ContentHandler::getDefaultModelFor
Definition at line 75 of file ContentHandlerTest.php.
References $title, ContentHandler\getDefaultModelFor(), and Title\newFromText().
ContentHandlerTest::testGetForTitle | ( | $ | title, |
$ | expectedContentModel | ||
) |
dataGetDefaultModelFor ContentHandler::getForTitle
Definition at line 84 of file ContentHandlerTest.php.
References $title, ContentHandler\getForTitle(), and Title\newFromText().
ContentHandlerTest::testGetLocalizedName | ( | $ | id, |
$ | expected | ||
) |
dataGetLocalizedName ContentHandler::getLocalizedName
Definition at line 104 of file ContentHandlerTest.php.
References $name, and ContentHandler\getLocalizedName().
ContentHandlerTest::testGetPageLanguage | ( | $ | title, |
$ | expected | ||
) |
dataGetPageLanguage ContentHandler::getPageLanguage
Definition at line 139 of file ContentHandlerTest.php.
References $title, ContentHandler\getForTitle(), Title\newFromText(), and wfGetLangObj().
ContentHandlerTest::testMakeContent | ( | $ | data, |
$ | title, | ||
$ | modelId, | ||
$ | format, | ||
$ | expectedModelId, | ||
$ | expectedNativeData, | ||
$ | shouldFail | ||
) |
dataMakeContent ContentHandler::makeContent
Definition at line 259 of file ContentHandlerTest.php.
References $title, fail, ContentHandler\makeContent(), and Title\newFromText().
ContentHandler::runLegacyHooks
Definition at line 290 of file ContentHandlerTest.php.
References $ok, array(), Hooks\register(), and ContentHandler\runLegacyHooks().