MediaWiki  REL1_22
WikiPageTest Class Reference

ContentHandler Database ^--- important, causes temporary tables to be used instead of the real database medium More...

Inheritance diagram for WikiPageTest:
Collaboration diagram for WikiPageTest:

List of all members.

Public Member Functions

 __construct ($name=null, array $data=array(), $dataName= '')
 broken_testDoRollback ()
 dataReplaceSection ()
 testDoDeleteArticle ()
 WikiPage::doDeleteArticle
 testDoDeleteUpdates ()
 WikiPage::doDeleteUpdates
 testDoEdit ()
 WikiPage::doEdit
 testDoEditContent ()
 WikiPage::doEditContent
 testDoQuickEdit ()
 WikiPage::doQuickEdit
 testDoQuickEditContent ()
 WikiPage::doQuickEditContent
 testDoRollback ()
 testExists ()
 WikiPage::exists
 testGetAutoDeleteReason ($edits, $expectedResult, $expectedHistory)
 provideGetAutoDeleteReason WikiPage::getAutoDeleteReason
 testGetAutosummary ($old, $new, $flags, $expected)
 provideGetAutoSummary WikiPage::getAutosummary
 testGetContent ()
 WikiPage::getContent
 testGetContentHandler ()
 WikiPage::getContentHandler
 testGetContentModel ()
 WikiPage::getContentModel
 testGetParserOutput ($model, $text, $expectedHtml)
 provideGetParserOutput WikiPage::getParserOutput
 testGetParserOutput_badrev ()
 WikiPage::getParserOutput
 testGetParserOutput_nonexisting ()
 WikiPage::getParserOutput
 testGetRawText ()
 WikiPage::getRawText
 testGetRedirectTarget ($title, $model, $text, $target)
 provideGetRedirectTarget WikiPage::getRedirectTarget
 testGetRevision ()
 WikiPage::getRevision
 testGetText ()
 WikiPage::getText
 testHasViewableContent ($title, $viewable, $create=false)
 provideHasViewableContent WikiPage::hasViewableContent
 testIsCountable ($title, $model, $text, $mode, $expected)
 provideIsCountable WikiPage::isCountable
 testIsRedirect ($title, $model, $text, $target)
 provideGetRedirectTarget WikiPage::isRedirect
 testPreSaveTransform ($text, $expected)
 providePreSaveTransform WikiPage::preSaveTransform
 testReplaceSection ($title, $model, $text, $section, $with, $sectionTitle, $expected)
 dataReplaceSection WikiPage::replaceSection
 testReplaceSectionContent ($title, $model, $text, $section, $with, $sectionTitle, $expected)
 dataReplaceSection WikiPage::replaceSectionContent

Static Public Member Functions

static provideGetAutoDeleteReason ()
static provideGetAutosummary ()
static provideGetParserOutput ()
static provideGetRedirectTarget ()
static provideHasViewableContent ()
static provideIsCountable ()
static providePreSaveTransform ()

Static Public Attributes

static $sections

Protected Member Functions

 createPage ($page, $text, $model=null)
 newPage ($title, $model=null)
 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()

Protected Attributes

 $pages_to_delete

Detailed Description

ContentHandler Database ^--- important, causes temporary tables to be used instead of the real database medium

Definition at line 9 of file WikiPageTest.php.


Constructor & Destructor Documentation

WikiPageTest::__construct ( name = null,
array data = array(),
dataName = '' 
)

Reimplemented from MediaWikiTestCase.

Definition at line 13 of file WikiPageTest.php.

References $name, and array().


Member Function Documentation

Todo:
FIXME: this is a better rollback test than the one below, but it keeps failing in jenkins for some reason.

Definition at line 802 of file WikiPageTest.php.

Definition at line 682 of file WikiPageTest.php.

WikiPageTest::newPage ( title,
model = null 
) [protected]

Definition at line 947 of file WikiPageTest.php.

Definition at line 891 of file WikiPageTest.php.

Definition at line 612 of file WikiPageTest.php.

References array().

Definition at line 440 of file WikiPageTest.php.

References array().

Definition at line 413 of file WikiPageTest.php.

References array().

static WikiPageTest::provideIsCountable ( ) [static]

Definition at line 472 of file WikiPageTest.php.

References array().

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.

Todo:
FIXME: the above rollback test is better, but it keeps failing in jenkins for some reason.

WikiPage::doRollback

Definition at line 859 of file WikiPageTest.php.

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.

WikiPageTest::testGetParserOutput ( model,
text,
expectedHtml 
)

provideGetParserOutput WikiPage::getParserOutput

Definition at line 623 of file WikiPageTest.php.

References createPage().

WikiPageTest::testGetRedirectTarget ( title,
model,
text,
target 
)

provideGetRedirectTarget WikiPage::getRedirectTarget

Definition at line 451 of file WikiPageTest.php.

References $t, $title, and createPage().

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 
)
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.


Member Data Documentation

WikiPageTest::$pages_to_delete [protected]

Definition at line 11 of file WikiPageTest.php.

WikiPageTest::$sections [static]
Initial value:
"Intro

== stuff ==
hello world

== test ==
just a test

== foo ==
more stuff
"

Definition at line 667 of file WikiPageTest.php.


The documentation for this class was generated from the following file: