MediaWiki
REL1_22
|
ContentHandler Database ^--- important, causes temporary tables to be used instead of the real database medium More...
ContentHandler Database ^--- important, causes temporary tables to be used instead of the real database medium
Definition at line 9 of file WikiPageTest.php.
WikiPageTest::__construct | ( | $ | name = null , |
array $ | data = array() , |
||
$ | dataName = '' |
||
) |
Reimplemented from MediaWikiTestCase.
Definition at line 13 of file WikiPageTest.php.
Definition at line 802 of file WikiPageTest.php.
WikiPageTest::createPage | ( | $ | page, |
$ | text, | ||
$ | model = null |
||
) | [protected] |
Definition at line 82 of file WikiPageTest.php.
References ContentHandler\makeContent(), and newPage().
Referenced by testDoDeleteArticle(), testDoDeleteUpdates(), testDoQuickEdit(), testDoQuickEditContent(), testExists(), testGetContent(), WikiPageTest_ContentHandlerUseDB\testGetContentHandler(), testGetContentHandler(), WikiPageTest_ContentHandlerUseDB\testGetContentModel(), testGetContentModel(), testGetParserOutput(), testGetRawText(), testGetRedirectTarget(), testGetRevision(), testGetText(), testHasViewableContent(), testIsCountable(), and testIsRedirect().
Definition at line 682 of file WikiPageTest.php.
WikiPageTest::newPage | ( | $ | title, |
$ | model = null |
||
) | [protected] |
Title | $title | |
String | $model |
Definition at line 62 of file WikiPageTest.php.
References $title, MediaWikiTestCase\getDefaultWikitextNS(), and Title\newFromText().
Referenced by createPage(), testDoEdit(), testDoEditContent(), testExists(), testGetContent(), testGetRawText(), testGetRevision(), testGetText(), and testHasViewableContent().
static WikiPageTest::provideGetAutoDeleteReason | ( | ) | [static] |
Definition at line 947 of file WikiPageTest.php.
static WikiPageTest::provideGetAutosummary | ( | ) | [static] |
Definition at line 891 of file WikiPageTest.php.
static WikiPageTest::provideGetParserOutput | ( | ) | [static] |
Definition at line 612 of file WikiPageTest.php.
References array().
static WikiPageTest::provideGetRedirectTarget | ( | ) | [static] |
Definition at line 440 of file WikiPageTest.php.
References array().
static WikiPageTest::provideHasViewableContent | ( | ) | [static] |
Definition at line 413 of file WikiPageTest.php.
References array().
static WikiPageTest::provideIsCountable | ( | ) | [static] |
Definition at line 472 of file WikiPageTest.php.
References array().
static WikiPageTest::providePreSaveTransform | ( | ) | [static] |
Definition at line 1048 of file WikiPageTest.php.
WikiPageTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiLangTestCase.
Reimplemented in WikiPageTest_ContentHandlerUseDB.
Definition at line 35 of file WikiPageTest.php.
References array(), cached, etc, redirect, and LinkCache\singleton().
WikiPageTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 42 of file WikiPageTest.php.
References as.
Definition at line 247 of file WikiPageTest.php.
References $dbr, $n, $res, $t, array(), createPage(), Title\newFromText(), and wfGetDB().
Definition at line 274 of file WikiPageTest.php.
References $dbr, $n, $res, array(), createPage(), and wfGetDB().
Definition at line 152 of file WikiPageTest.php.
References $dbr, $n, $res, $title, array(), MediaWikiTestCase\hideDeprecated(), Title\newFromText(), newPage(), and wfGetDB().
Definition at line 96 of file WikiPageTest.php.
References $dbr, $n, $res, $title, array(), ContentHandler\makeContent(), newPage(), and wfGetDB().
Definition at line 212 of file WikiPageTest.php.
References $wgUser, createPage(), global, and MediaWikiTestCase\hideDeprecated().
Definition at line 231 of file WikiPageTest.php.
References $wgUser, createPage(), global, and ContentHandler\makeContent().
Definition at line 859 of file WikiPageTest.php.
Definition at line 394 of file WikiPageTest.php.
References createPage(), WikiPage\doDeleteArticle(), and newPage().
WikiPageTest::testGetAutoDeleteReason | ( | $ | edits, |
$ | expectedResult, | ||
$ | expectedHistory | ||
) |
provideGetAutoDeleteReason WikiPage::getAutoDeleteReason
Definition at line 1009 of file WikiPageTest.php.
WikiPageTest::testGetAutosummary | ( | $ | old, |
$ | new, | ||
$ | flags, | ||
$ | expected | ||
) |
provideGetAutoSummary WikiPage::getAutosummary
Definition at line 936 of file WikiPageTest.php.
Definition at line 310 of file WikiPageTest.php.
References createPage(), and newPage().
Reimplemented in WikiPageTest_ContentHandlerUseDB.
Definition at line 378 of file WikiPageTest.php.
References createPage(), and global.
Reimplemented in WikiPageTest_ContentHandlerUseDB.
Definition at line 362 of file WikiPageTest.php.
References createPage(), and global.
WikiPageTest::testGetParserOutput | ( | $ | model, |
$ | text, | ||
$ | expectedHtml | ||
) |
provideGetParserOutput WikiPage::getParserOutput
Definition at line 623 of file WikiPageTest.php.
References createPage().
Definition at line 656 of file WikiPageTest.php.
Definition at line 641 of file WikiPageTest.php.
Definition at line 344 of file WikiPageTest.php.
References createPage(), MediaWikiTestCase\hideDeprecated(), and newPage().
WikiPageTest::testGetRedirectTarget | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | target | ||
) |
provideGetRedirectTarget WikiPage::getRedirectTarget
Definition at line 451 of file WikiPageTest.php.
References $t, $title, and createPage().
Definition at line 292 of file WikiPageTest.php.
References $rev, createPage(), and newPage().
Definition at line 326 of file WikiPageTest.php.
References createPage(), MediaWikiTestCase\hideDeprecated(), and newPage().
WikiPageTest::testHasViewableContent | ( | $ | title, |
$ | viewable, | ||
$ | create = false |
||
) |
provideHasViewableContent WikiPage::hasViewableContent
Definition at line 427 of file WikiPageTest.php.
References $title, createPage(), and newPage().
WikiPageTest::testIsCountable | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | mode, | ||
$ | expected | ||
) |
provideIsCountable WikiPage::isCountable
Definition at line 584 of file WikiPageTest.php.
References $title, array(), createPage(), ContentHandler\getDefaultModelFor(), global, Title\newFromText(), MediaWikiTestCase\setMwGlobals(), and wfGetDB().
WikiPageTest::testIsRedirect | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | target | ||
) |
provideGetRedirectTarget WikiPage::isRedirect
Definition at line 467 of file WikiPageTest.php.
References $title, and createPage().
WikiPageTest::testPreSaveTransform | ( | $ | text, |
$ | expected | ||
) |
providePreSaveTransform WikiPage::preSaveTransform
Definition at line 1063 of file WikiPageTest.php.
WikiPageTest::testReplaceSection | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | section, | ||
$ | with, | ||
$ | sectionTitle, | ||
$ | expected | ||
) |
dataReplaceSection WikiPage::replaceSection
Definition at line 734 of file WikiPageTest.php.
WikiPageTest::testReplaceSectionContent | ( | $ | title, |
$ | model, | ||
$ | text, | ||
$ | section, | ||
$ | with, | ||
$ | sectionTitle, | ||
$ | expected | ||
) |
dataReplaceSection WikiPage::replaceSectionContent
Definition at line 748 of file WikiPageTest.php.
WikiPageTest::$pages_to_delete [protected] |
Definition at line 11 of file WikiPageTest.php.
WikiPageTest::$sections [static] |
"Intro == stuff == hello world == test == just a test == foo == more stuff "
Definition at line 667 of file WikiPageTest.php.