MediaWiki  REL1_21
ContentHandlerTest Class Reference

ContentHandler Database More...

Inheritance diagram for ContentHandlerTest:
Collaboration diagram for ContentHandlerTest:

List of all members.

Public Member Functions

 setup ()
 tearDown ()
 testGetContentText_NonTextContent ()
 testGetContentText_Null ()
 testGetContentText_TextContent ()
 testGetDefaultModelFor ($title, $expectedModelId)
 dataGetDefaultModelFor
 testGetForTitle ($title, $expectedContentModel)
 dataGetDefaultModelFor
 testGetLocalizedName ($id, $expected)
 dataGetLocalizedName
 testGetPageLanguage ($title, $expected)
 dataGetPageLanguage
 testMakeContent ($data, $title, $modelId, $format, $expectedModelId, $expectedNativeData, $shouldFail)
 dataMakeContent
 testRunLegacyHooks ()

Static Public Member Functions

static dataGetDefaultModelFor ()
static dataGetLocalizedName ()
static dataGetPageLanguage ()
static dataMakeContent ()
static dummyHookHandler ($foo, &$text, $bar)

Detailed Description

ContentHandler Database

Note:
Declare that we are using the database, because otherwise we'll fail in the "databaseless" test run. This is because the LinkHolderArray used by the parser needs database access.

Definition at line 11 of file ContentHandlerTest.php.


Member Function Documentation

Definition at line 51 of file ContentHandlerTest.php.

References array().

Definition at line 88 of file ContentHandlerTest.php.

References array().

Definition at line 116 of file ContentHandlerTest.php.

References array(), and global.

Definition at line 212 of file ContentHandlerTest.php.

References array().

static ContentHandlerTest::dummyHookHandler ( foo,
&$  text,
bar 
) [static]

Definition at line 274 of file ContentHandlerTest.php.

ContentHandlerTest::testGetDefaultModelFor ( title,
expectedModelId 
)

dataGetDefaultModelFor

Definition at line 74 of file ContentHandlerTest.php.

References $title, ContentHandler\getDefaultModelFor(), and Title\newFromText().

ContentHandlerTest::testGetForTitle ( title,
expectedContentModel 
)

dataGetDefaultModelFor

Definition at line 82 of file ContentHandlerTest.php.

References $title, ContentHandler\getForTitle(), and Title\newFromText().

ContentHandlerTest::testGetLocalizedName ( id,
expected 
)

dataGetLocalizedName

Definition at line 101 of file ContentHandlerTest.php.

References $name, and ContentHandler\getLocalizedName().

ContentHandlerTest::testGetPageLanguage ( title,
expected 
)

dataGetPageLanguage

Definition at line 135 of file ContentHandlerTest.php.

References $title, ContentHandler\getForTitle(), Title\newFromText(), and wfGetLangObj().

ContentHandlerTest::testMakeContent ( data,
title,
modelId,
format,
expectedModelId,
expectedNativeData,
shouldFail 
)

dataMakeContent

Definition at line 235 of file ContentHandlerTest.php.

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


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