|
MediaWiki
REL1_24
|
ContentHandler Database ^--- needed, because we do need the database to test link updates More...


ContentHandler Database ^--- needed, because we do need the database to test link updates
Definition at line 8 of file TextContentTest.php.
| static TextContentTest::dataEquals | ( | ) | [static] |
Reimplemented in WikitextContentTest, JavaScriptContentTest, and CssContentTest.
Definition at line 373 of file TextContentTest.php.
References array().
| static TextContentTest::dataGetDeletionUpdates | ( | ) | [static] |
Reimplemented in WikitextContentTest.
Definition at line 391 of file TextContentTest.php.
References array().
| static TextContentTest::dataGetParserOutput | ( | ) | [static] |
Reimplemented in CssContentTest, WikitextContentTest, and JavaScriptContentTest.
Definition at line 59 of file TextContentTest.php.
References array().
| static TextContentTest::dataGetRedirectTarget | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 163 of file TextContentTest.php.
References array().
| static TextContentTest::dataGetTextForSummary | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 262 of file TextContentTest.php.
References array().
| static TextContentTest::dataIsCountable | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 216 of file TextContentTest.php.
References array().
| static TextContentTest::dataIsEmpty | ( | ) | [static] |
Definition at line 354 of file TextContentTest.php.
References array().
| static TextContentTest::dataPreloadTransform | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 140 of file TextContentTest.php.
References array().
| static TextContentTest::dataPreSaveTransform | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 106 of file TextContentTest.php.
References array().
| TextContentTest::newContent | ( | $ | text | ) |
Reimplemented in CssContentTest, WikitextContentTest, and JavaScriptContentTest.
Definition at line 55 of file TextContentTest.php.
Referenced by testCopy(), testGetContentHandler(), testGetModel(), testGetNativeData(), testGetRedirectTarget(), testGetSize(), testGetTextForSearchIndex(), testGetTextForSummary(), testGetWikitextForTransclusion(), testIsCountable(), testIsEmpty(), testIsRedirect(), testPreloadTransform(), and testPreSaveTransform().
| static TextContentTest::provideConvert | ( | ) | [static] |
Definition at line 445 of file TextContentTest.php.
| TextContentTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiLangTestCase.
Reimplemented in CssContentTest.
Definition at line 12 of file TextContentTest.php.
References $user, $wgHooks, array(), global, Title\newFromText(), MediaWikiTestCase\setMwGlobals(), and User.
Definition at line 44 of file TextContentTest.php.
| TextContentTest::testConvert | ( | $ | text, |
| $ | model, | ||
| $ | lossy, | ||
| $ | expectedNative | ||
| ) |
provideConvert TextContent::convert
Definition at line 478 of file TextContentTest.php.
Definition at line 301 of file TextContentTest.php.
References $content, and newContent().
| TextContentTest::testDeletionUpdates | ( | $ | title, |
| $ | model, | ||
| $ | text, | ||
| $ | expectedStuff | ||
| ) |
dataGetDeletionUpdates TextContent::getDeletionUpdates
Definition at line 409 of file TextContentTest.php.
References $content, $title, $value, as, WikiPage\factory(), MediaWikiTestCase\getDefaultWikitextNS(), ContentHandler\makeContent(), and Title\newFromText().
| TextContentTest::testEquals | ( | Content $ | a, |
| Content $ | b = null, |
||
| $ | equal = false |
||
| ) |
dataEquals TextContent::equals
Reimplemented in CssContentTest.
Definition at line 387 of file TextContentTest.php.
References Content\equals().
TextContent::getContentHandler
Reimplemented in WikitextContentTest, JavaScriptContentTest, and CssContentTest.
Definition at line 348 of file TextContentTest.php.
References $content, and newContent().
Reimplemented in WikitextContentTest, JavaScriptContentTest, and CssContentTest.
Definition at line 339 of file TextContentTest.php.
References $content, and newContent().
Definition at line 321 of file TextContentTest.php.
References $content, and newContent().
| TextContentTest::testGetParserOutput | ( | $ | title, |
| $ | model, | ||
| $ | text, | ||
| $ | expectedHtml, | ||
| $ | expectedFields = null |
||
| ) |
dataGetParserOutput TextContent::getParserOutput
Definition at line 77 of file TextContentTest.php.
References $content, $f, $html, $title, array(), as, MediaWikiTestCase\assertArrayEquals(), ContentHandler\makeContent(), and Title\newFromText().
| TextContentTest::testGetRedirectTarget | ( | $ | text, |
| $ | expected | ||
| ) |
dataGetRedirectTarget TextContent::getRedirectTarget
Definition at line 175 of file TextContentTest.php.
References $content, $t, and newContent().
Definition at line 312 of file TextContentTest.php.
References $content, and newContent().
TextContent::getTextForSearchIndex
Definition at line 292 of file TextContentTest.php.
References $content, and newContent().
| TextContentTest::testGetTextForSummary | ( | $ | text, |
| $ | maxlength, | ||
| $ | expected | ||
| ) |
dataGetTextForSummary TextContent::getTextForSummary
Definition at line 283 of file TextContentTest.php.
References $content, and newContent().
TextContent::getWikitextForTransclusion
Definition at line 330 of file TextContentTest.php.
References $content, and newContent().
| TextContentTest::testIsCountable | ( | $ | text, |
| $ | hasLinks, | ||
| $ | mode, | ||
| $ | expected | ||
| ) |
dataIsCountable Database TextContent::isCountable
Definition at line 246 of file TextContentTest.php.
References $content, newContent(), and MediaWikiTestCase\setMwGlobals().
| TextContentTest::testIsEmpty | ( | $ | text, |
| $ | empty | ||
| ) |
dataIsEmpty TextContent::isEmpty
Definition at line 367 of file TextContentTest.php.
References $content, and newContent().
| TextContentTest::testIsRedirect | ( | $ | text, |
| $ | expected | ||
| ) |
dataGetRedirectTarget TextContent::isRedirect
Definition at line 190 of file TextContentTest.php.
References $content, and newContent().
| TextContentTest::testPreloadTransform | ( | $ | text, |
| $ | expected | ||
| ) |
dataPreloadTransform TextContent::preloadTransform
Definition at line 153 of file TextContentTest.php.
References $content, $options, $wgContLang, global, newContent(), and ParserOptions\newFromUserAndLang().
| TextContentTest::testPreSaveTransform | ( | $ | text, |
| $ | expected | ||
| ) |
dataPreSaveTransform TextContent::preSaveTransform
Definition at line 125 of file TextContentTest.php.
References $content, $options, $wgContLang, global, newContent(), and ParserOptions\newFromUserAndLang().
TextContentTest::$context [protected] |
Definition at line 9 of file TextContentTest.php.
TextContentTest::$savedContentGetParserOutput [protected] |
Definition at line 10 of file TextContentTest.php.