MediaWiki  master
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 361 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 371 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 29 of file WikitextContentTest.php.

References array().

Reimplemented from TextContentTest.

Definition at line 209 of file WikitextContentTest.php.

Definition at line 41 of file WikitextContentTest.php.

References array().

Definition at line 97 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

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

Reimplemented from TextContentTest.

Definition at line 198 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 183 of file WikitextContentTest.php.

Definition at line 131 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 25 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 355 of file WikitextContentTest.php.

Reimplemented from TextContentTest.

Definition at line 349 of file WikitextContentTest.php.

WikitextContentTest::testGetSecondaryDataUpdates ( title,
model,
text,
expectedStuff 
)

dataGetSecondaryDataUpdates Database

Definition at line 71 of file WikitextContentTest.php.

References $title, $value, as, ContentHandler\makeContent(), and Title\newFromText().

WikitextContentTest::testGetSection ( text,
sectionId,
expectedText 
)

dataGetSection

Definition at line 118 of file WikitextContentTest.php.

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

dataReplaceSection

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

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


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