MediaWiki  REL1_22
WikitextContentTest Class Reference

ContentHandler More...

Inheritance diagram for WikitextContentTest:
Collaboration diagram for WikitextContentTest:

List of all members.

Public Member Functions

 newContent ($text)
 testAddSectionHeader ()
 WikitextContent::addSectionHeader
 testGetContentHandler ()
 WikitextContent::getContentHandler
 testGetModel ()
 WikitextContent::getModel
 testGetSecondaryDataUpdates ($title, $model, $text, $expectedStuff)
 dataGetSecondaryDataUpdates Database WikitextContent::getSecondaryDataUpdates
 testGetSection ($text, $sectionId, $expectedText)
 dataGetSection WikitextContent::getSection
 testMatchMagicWord ()
 WikitextContent::matchMagicWord
 testReplaceSection ($text, $section, $with, $sectionTitle, $expected)
 dataReplaceSection WikitextContent::replaceSection
 testUpdateRedirect ()
 WikitextContent::updateRedirect

Static Public Member Functions

static dataEquals ()
static dataGetDeletionUpdates ()
static dataGetParserOutput ()
static dataGetRedirectTarget ()
static dataGetSecondaryDataUpdates ()
static dataGetSection ()
static dataGetTextForSummary ()
static dataIsCountable ()
static dataPreloadTransform ()
static dataPreSaveTransform ()
static dataReplaceSection ()

Static Public Attributes

static $sections

Detailed Description

ContentHandler

Database ^--- needed, because we do need the database to test link updates

Definition at line 9 of file WikitextContentTest.php.


Member Function Documentation

static WikitextContentTest::dataEquals ( ) [static]

Reimplemented from TextContentTest.

Definition at line 381 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 391 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 26 of file WikitextContentTest.php.

References array().

Reimplemented from TextContentTest.

Definition at line 217 of file WikitextContentTest.php.

Definition at line 38 of file WikitextContentTest.php.

References array().

Definition at line 100 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 231 of file WikitextContentTest.php.

Todo:
Test needs database! Should be done by a test class in the Database group.
Todo:
Test needs database! Should be done by a test class in the Database group.

Reimplemented from TextContentTest.

Definition at line 268 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 206 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 191 of file WikitextContentTest.php.

Definition at line 135 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 22 of file WikitextContentTest.php.

WikitextContentTest::testGetSecondaryDataUpdates ( title,
model,
text,
expectedStuff 
)
WikitextContentTest::testGetSection ( text,
sectionId,
expectedText 
)

dataGetSection WikitextContent::getSection

Definition at line 122 of file WikitextContentTest.php.

WikitextContentTest::testReplaceSection ( text,
section,
with,
sectionTitle,
expected 
)

dataReplaceSection WikitextContent::replaceSection

Definition at line 174 of file WikitextContentTest.php.


Member Data Documentation

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

== stuff ==
hello world

== test ==
just a test

== foo ==
more stuff
"

Definition at line 10 of file WikitextContentTest.php.

Referenced by JavaScriptContentTest\dataGetSection(), and JavaScriptContentTest\dataReplaceSection().


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