MediaWiki  REL1_21
WikitextContentTest Class Reference

ContentHandler More...

Inheritance diagram for WikitextContentTest:
Collaboration diagram for WikitextContentTest:

List of all members.

Public Member Functions

 newContent ($text)
 testAddSectionHeader ()
 testGetContentHandler ()
 testGetModel ()
 testGetSecondaryDataUpdates ($title, $model, $text, $expectedStuff)
 dataGetSecondaryDataUpdates Database
 testGetSection ($text, $sectionId, $expectedText)
 dataGetSection
 testMatchMagicWord ()
 testReplaceSection ($text, $section, $with, $sectionTitle, $expected)
 dataReplaceSection
 testUpdateRedirect ()

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 363 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 373 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 26 of file WikitextContentTest.php.

References array().

Reimplemented from TextContentTest.

Definition at line 211 of file WikitextContentTest.php.

Definition at line 38 of file WikitextContentTest.php.

References array().

Definition at line 99 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 225 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 262 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 200 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 185 of file WikitextContentTest.php.

Definition at line 133 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 22 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 357 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 351 of file WikitextContentTest.php.

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

dataGetSection

Definition at line 120 of file WikitextContentTest.php.

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

dataReplaceSection

Definition at line 171 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: