MediaWiki
REL1_22
|
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, and JavaScriptContentTest.
Definition at line 341 of file TextContentTest.php.
References array().
static TextContentTest::dataGetDeletionUpdates | ( | ) | [static] |
Reimplemented in WikitextContentTest.
Definition at line 359 of file TextContentTest.php.
References array().
static TextContentTest::dataGetParserOutput | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 38 of file TextContentTest.php.
References array().
static TextContentTest::dataGetRedirectTarget | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 136 of file TextContentTest.php.
References array().
static TextContentTest::dataGetTextForSummary | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 230 of file TextContentTest.php.
References array().
static TextContentTest::dataIsCountable | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 189 of file TextContentTest.php.
References array().
static TextContentTest::dataIsEmpty | ( | ) | [static] |
Definition at line 322 of file TextContentTest.php.
References array().
static TextContentTest::dataPreloadTransform | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 113 of file TextContentTest.php.
References array().
static TextContentTest::dataPreSaveTransform | ( | ) | [static] |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 83 of file TextContentTest.php.
References array().
TextContentTest::newContent | ( | $ | text | ) |
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 34 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 413 of file TextContentTest.php.
TextContentTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiLangTestCase.
Definition at line 11 of file TextContentTest.php.
References $user, array(), Title\newFromText(), MediaWikiTestCase\setMwGlobals(), and User.
TextContentTest::testConvert | ( | $ | text, |
$ | model, | ||
$ | lossy, | ||
$ | expectedNative | ||
) |
provideConvert TextContent::convert
Definition at line 446 of file TextContentTest.php.
TextContentTest::testDeletionUpdates | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | expectedStuff | ||
) |
dataGetDeletionUpdates TextContent::getDeletionUpdates
Definition at line 377 of file TextContentTest.php.
References $title, $value, as, WikiPage\factory(), MediaWikiTestCase\getDefaultWikitextNS(), ContentHandler\makeContent(), and Title\newFromText().
TextContentTest::testEquals | ( | Content $ | a, |
Content $ | b = null , |
||
$ | equal = false |
||
) |
dataEquals TextContent::equals
Definition at line 355 of file TextContentTest.php.
References Content\equals().
TextContent::getContentHandler
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 316 of file TextContentTest.php.
References newContent().
Reimplemented in WikitextContentTest, and JavaScriptContentTest.
Definition at line 307 of file TextContentTest.php.
References newContent().
Definition at line 289 of file TextContentTest.php.
References newContent().
TextContentTest::testGetParserOutput | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | expectedHtml, | ||
$ | expectedFields = null |
||
) |
dataGetParserOutput TextContent::getParserOutput
Definition at line 56 of file TextContentTest.php.
References $f, $html, $title, array(), as, MediaWikiTestCase\assertArrayEquals(), ContentHandler\makeContent(), and Title\newFromText().
TextContentTest::testGetRedirectTarget | ( | $ | text, |
$ | expected | ||
) |
dataGetRedirectTarget TextContent::getRedirectTarget
Definition at line 148 of file TextContentTest.php.
References $t, and newContent().
TextContent::getTextForSearchIndex
Definition at line 260 of file TextContentTest.php.
References newContent().
TextContentTest::testGetTextForSummary | ( | $ | text, |
$ | maxlength, | ||
$ | expected | ||
) |
dataGetTextForSummary TextContent::getTextForSummary
Definition at line 251 of file TextContentTest.php.
References newContent().
TextContent::getWikitextForTransclusion
Definition at line 298 of file TextContentTest.php.
References newContent().
TextContentTest::testIsCountable | ( | $ | text, |
$ | hasLinks, | ||
$ | mode, | ||
$ | expected | ||
) |
dataIsCountable Database TextContent::isCountable
Definition at line 219 of file TextContentTest.php.
References newContent(), and MediaWikiTestCase\setMwGlobals().
TextContentTest::testIsEmpty | ( | $ | text, |
$ | empty | ||
) |
dataIsEmpty TextContent::isEmpty
Definition at line 335 of file TextContentTest.php.
References newContent().
TextContentTest::testIsRedirect | ( | $ | text, |
$ | expected | ||
) |
dataGetRedirectTarget TextContent::isRedirect
Definition at line 163 of file TextContentTest.php.
References newContent().
TextContentTest::testPreloadTransform | ( | $ | text, |
$ | expected | ||
) |
dataPreloadTransform TextContent::preloadTransform
Definition at line 126 of file TextContentTest.php.
References $options, $wgContLang, global, newContent(), and ParserOptions\newFromUserAndLang().
TextContentTest::testPreSaveTransform | ( | $ | text, |
$ | expected | ||
) |
dataPreSaveTransform TextContent::preSaveTransform
Definition at line 102 of file TextContentTest.php.
References $options, $wgContLang, global, newContent(), and ParserOptions\newFromUserAndLang().
TextContentTest::$context [protected] |
Definition at line 9 of file TextContentTest.php.