MediaWiki  REL1_21
TextContentTest Class Reference

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

Inheritance diagram for TextContentTest:
Collaboration diagram for TextContentTest:

List of all members.

Public Member Functions

 newContent ($text)
 testConvert ($text, $model, $lossy, $expectedNative)
 provideConvert
 testCopy ()
 testDeletionUpdates ($title, $model, $text, $expectedStuff)
 dataGetDeletionUpdates
 testEquals (Content $a, Content $b=null, $equal=false)
 dataEquals
 testGetContentHandler ()
 testGetModel ()
 testGetNativeData ()
 testGetParserOutput ($title, $model, $text, $expectedHtml, $expectedFields=null)
 dataGetParserOutput
 testGetRedirectTarget ($text, $expected)
 dataGetRedirectTarget
 testGetSize ()
 testGetTextForSearchIndex ()
 testGetTextForSummary ($text, $maxlength, $expected)
 dataGetTextForSummary
 testGetWikitextForTransclusion ()
 testIsCountable ($text, $hasLinks, $mode, $expected)
 dataIsCountable Database
 testIsEmpty ($text, $empty)
 dataIsEmpty
 testIsRedirect ($text, $expected)
 dataGetRedirectTarget
 testPreloadTransform ($text, $expected)
 dataPreloadTransform
 testPreSaveTransform ($text, $expected)
 dataPreSaveTransform

Static Public Member Functions

static dataEquals ()
static dataGetDeletionUpdates ()
static dataGetParserOutput ()
static dataGetRedirectTarget ()
static dataGetTextForSummary ()
static dataIsCountable ()
static dataIsEmpty ()
static dataPreloadTransform ()
static dataPreSaveTransform ()
static provideConvert ()

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Protected Attributes

 $context

Detailed Description

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

Definition at line 8 of file TextContentTest.php.


Member Function Documentation

static TextContentTest::dataEquals ( ) [static]

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 316 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest.

Definition at line 333 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 38 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 133 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 228 of file TextContentTest.php.

References array().

static TextContentTest::dataIsCountable ( ) [static]
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 in WikitextContentTest, and JavaScriptContentTest.

Definition at line 184 of file TextContentTest.php.

References array().

static TextContentTest::dataIsEmpty ( ) [static]

Definition at line 298 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 111 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 82 of file TextContentTest.php.

References array().

static TextContentTest::provideConvert ( ) [static]

Definition at line 386 of file TextContentTest.php.

TextContentTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiLangTestCase.

Definition at line 11 of file TextContentTest.php.

References $user, array(), Title\newFromText(), MediaWikiTestCase\setMwGlobals(), and User.

TextContentTest::testConvert ( text,
model,
lossy,
expectedNative 
)

provideConvert

Definition at line 418 of file TextContentTest.php.

Definition at line 260 of file TextContentTest.php.

References newContent().

TextContentTest::testDeletionUpdates ( title,
model,
text,
expectedStuff 
)
TextContentTest::testEquals ( Content a,
Content b = null,
equal = false 
)

dataEquals

Definition at line 329 of file TextContentTest.php.

References Content\equals().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 286 of file TextContentTest.php.

References newContent().

Definition at line 274 of file TextContentTest.php.

References newContent().

TextContentTest::testGetParserOutput ( title,
model,
text,
expectedHtml,
expectedFields = null 
)
TextContentTest::testGetRedirectTarget ( text,
expected 
)

dataGetRedirectTarget

Definition at line 144 of file TextContentTest.php.

References $t, and newContent().

Definition at line 268 of file TextContentTest.php.

References newContent().

TextContentTest::testGetTextForSummary ( text,
maxlength,
expected 
)

dataGetTextForSummary

Definition at line 248 of file TextContentTest.php.

References newContent().

TextContentTest::testIsCountable ( text,
hasLinks,
mode,
expected 
)

dataIsCountable Database

Definition at line 213 of file TextContentTest.php.

References global, and newContent().

TextContentTest::testIsEmpty ( text,
empty 
)

dataIsEmpty

Definition at line 310 of file TextContentTest.php.

References newContent().

TextContentTest::testIsRedirect ( text,
expected 
)

dataGetRedirectTarget

Definition at line 158 of file TextContentTest.php.

References newContent().

TextContentTest::testPreloadTransform ( text,
expected 
)

dataPreloadTransform

Definition at line 123 of file TextContentTest.php.

References $options, $wgContLang, global, newContent(), and ParserOptions\newFromUserAndLang().

TextContentTest::testPreSaveTransform ( text,
expected 
)

dataPreSaveTransform

Definition at line 100 of file TextContentTest.php.

References $options, $wgContLang, global, newContent(), and ParserOptions\newFromUserAndLang().


Member Data Documentation

TextContentTest::$context [protected]

Definition at line 9 of file TextContentTest.php.


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