MediaWiki  REL1_22
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 TextContent::convert
 testCopy ()
 TextContent::copy
 testDeletionUpdates ($title, $model, $text, $expectedStuff)
 dataGetDeletionUpdates TextContent::getDeletionUpdates
 testEquals (Content $a, Content $b=null, $equal=false)
 dataEquals TextContent::equals
 testGetContentHandler ()
 TextContent::getContentHandler
 testGetModel ()
 TextContent::getModel
 testGetNativeData ()
 TextContent::getNativeData
 testGetParserOutput ($title, $model, $text, $expectedHtml, $expectedFields=null)
 dataGetParserOutput TextContent::getParserOutput
 testGetRedirectTarget ($text, $expected)
 dataGetRedirectTarget TextContent::getRedirectTarget
 testGetSize ()
 TextContent::getSize
 testGetTextForSearchIndex ()
 TextContent::getTextForSearchIndex
 testGetTextForSummary ($text, $maxlength, $expected)
 dataGetTextForSummary TextContent::getTextForSummary
 testGetWikitextForTransclusion ()
 TextContent::getWikitextForTransclusion
 testIsCountable ($text, $hasLinks, $mode, $expected)
 dataIsCountable Database TextContent::isCountable
 testIsEmpty ($text, $empty)
 dataIsEmpty TextContent::isEmpty
 testIsRedirect ($text, $expected)
 dataGetRedirectTarget TextContent::isRedirect
 testPreloadTransform ($text, $expected)
 dataPreloadTransform TextContent::preloadTransform
 testPreSaveTransform ($text, $expected)
 dataPreSaveTransform TextContent::preSaveTransform

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 341 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest.

Definition at line 359 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 136 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 230 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 189 of file TextContentTest.php.

References array().

static TextContentTest::dataIsEmpty ( ) [static]

Definition at line 322 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 113 of file TextContentTest.php.

References array().

Reimplemented in WikitextContentTest, and JavaScriptContentTest.

Definition at line 83 of file TextContentTest.php.

References array().

static TextContentTest::provideConvert ( ) [static]

Definition at line 413 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 TextContent::convert

Definition at line 446 of file TextContentTest.php.

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

dataEquals TextContent::equals

Definition at line 355 of file TextContentTest.php.

References Content\equals().

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

dataGetRedirectTarget TextContent::getRedirectTarget

Definition at line 148 of file TextContentTest.php.

References $t, and newContent().

TextContentTest::testGetTextForSummary ( text,
maxlength,
expected 
)

dataGetTextForSummary TextContent::getTextForSummary

Definition at line 251 of file TextContentTest.php.

References newContent().

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

dataIsCountable Database TextContent::isCountable

Definition at line 219 of file TextContentTest.php.

References newContent(), and MediaWikiTestCase\setMwGlobals().

TextContentTest::testIsEmpty ( text,
empty 
)

dataIsEmpty TextContent::isEmpty

Definition at line 335 of file TextContentTest.php.

References newContent().

TextContentTest::testIsRedirect ( text,
expected 
)

dataGetRedirectTarget TextContent::isRedirect

Definition at line 163 of file TextContentTest.php.

References newContent().

TextContentTest::testPreloadTransform ( text,
expected 
)
TextContentTest::testPreSaveTransform ( text,
expected 
)

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: