MediaWiki  REL1_24
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
 testRedirectParserOption ()
 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 410 of file WikitextContentTest.php.

References array().

Reimplemented from TextContentTest.

Definition at line 420 of file WikitextContentTest.php.

References array().

Reimplemented from TextContentTest.

Definition at line 26 of file WikitextContentTest.php.

References array().

Reimplemented from TextContentTest.

Definition at line 220 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 234 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 251 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 209 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 194 of file WikitextContentTest.php.

Definition at line 135 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 22 of file WikitextContentTest.php.

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 177 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: