MediaWiki  master
RevisionTest Class Reference

ContentHandler More...

Inheritance diagram for RevisionTest:
Collaboration diagram for RevisionTest:

List of all members.

Public Member Functions

 dataGetContent ()
 dataGetContentFormat ()
 dataGetContentHandler ()
 dataGetContentModel ()
 dataGetSha1 ()
 dataGetSize ()
 dataGetText ()
 newTestRevision ($text, $title="Test", $model=CONTENT_MODEL_WIKITEXT, $format=null)
 tearDown ()
 testCompressRevisionTextUtf8 ()
 testCompressRevisionTextUtf8Gzip ()
 testConstructWithContent ()
 testConstructWithText ()
 testGetContent ($text, $title, $model, $format, $audience, $expectedSerialization)
 Database dataGetContent
 testGetContentClone ()
 Tests whether $rev->getContent() returns a clone when needed.
 testGetContentFormat ($text, $title, $model, $format, $expectedFormat)
 Database dataGetContentFormat
 testGetContentHandler ($text, $title, $model, $format, $expectedClass)
 Database dataGetContentHandler
 testGetContentModel ($text, $title, $model, $format, $expectedModel)
 Database dataGetContentModel
 testGetContentUncloned ()
 Tests whether $rev->getContent() returns the same object repeatedly if appropriate.
 testGetRawText ($text, $title, $model, $format, $audience, $expectedText)
 Database dataGetText
 testGetRevisionText ()
 testGetRevisionTextGzip ()
 testGetRevisionTextUtf8Legacy ()
 testGetRevisionTextUtf8LegacyGzip ()
 testGetRevisionTextUtf8Native ()
 testGetRevisionTextUtf8NativeGzip ()
 testGetSha1 ($text, $model, $expected_hash)
 Revision::getSha1 Database dataGetSha1
 testGetSize ($text, $model, $expected_size)
 Revision::getSize Database dataGetSize
 testGetText ($text, $title, $model, $format, $audience, $expectedText)
 Database dataGetText

Protected Member Functions

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

Detailed Description

ContentHandler

Definition at line 6 of file RevisionTest.php.


Member Function Documentation

Definition at line 249 of file RevisionTest.php.

References array(), and Revision\FOR_PUBLIC.

Definition at line 210 of file RevisionTest.php.

References array().

Definition at line 230 of file RevisionTest.php.

References array().

Definition at line 191 of file RevisionTest.php.

References array().

Definition at line 321 of file RevisionTest.php.

References array(), and Revision\base36Sha1().

Definition at line 303 of file RevisionTest.php.

References array().

Definition at line 269 of file RevisionTest.php.

References array(), and Revision\FOR_PUBLIC.

RevisionTest::newTestRevision ( text,
title = "Test",
model = CONTENT_MODEL_WIKITEXT,
format = null 
)
RevisionTest::setUp ( ) [protected]

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

Reimplemented from MediaWikiTestCase.

Definition at line 7 of file RevisionTest.php.

References $wgContLang, array(), cache, Language\factory(), MWNamespace\getCanonicalNamespaces(), global, MediaWikiTestCase\mergeMwGlobalArrayValue(), and MediaWikiTestCase\setMwGlobals().

Reimplemented from MediaWikiTestCase.

Definition at line 47 of file RevisionTest.php.

References $wgContLang, cache, MWNamespace\getCanonicalNamespaces(), and global.

RevisionTest::testGetContent ( text,
title,
model,
format,
audience,
expectedSerialization 
)

Database dataGetContent

Definition at line 262 of file RevisionTest.php.

References $title, and newTestRevision().

Tests whether $rev->getContent() returns a clone when needed.

Database

Definition at line 373 of file RevisionTest.php.

References array(), Title\newFromText(), and Revision\RAW.

RevisionTest::testGetContentFormat ( text,
title,
model,
format,
expectedFormat 
)

Database dataGetContentFormat

Definition at line 224 of file RevisionTest.php.

References $title, and newTestRevision().

RevisionTest::testGetContentHandler ( text,
title,
model,
format,
expectedClass 
)

Database dataGetContentHandler

Definition at line 243 of file RevisionTest.php.

References $title, and newTestRevision().

RevisionTest::testGetContentModel ( text,
title,
model,
format,
expectedModel 
)

Database dataGetContentModel

Definition at line 204 of file RevisionTest.php.

References $title, and newTestRevision().

Tests whether $rev->getContent() returns the same object repeatedly if appropriate.

Database

Definition at line 406 of file RevisionTest.php.

References newTestRevision(), and Revision\RAW.

RevisionTest::testGetRawText ( text,
title,
model,
format,
audience,
expectedText 
)

Database dataGetText

Definition at line 294 of file RevisionTest.php.

References $title, MediaWikiTestCase\hideDeprecated(), and newTestRevision().

RevisionTest::testGetSha1 ( text,
model,
expected_hash 
)

Revision::getSha1 Database dataGetSha1

Definition at line 333 of file RevisionTest.php.

References newTestRevision().

RevisionTest::testGetSize ( text,
model,
expected_size 
)

Revision::getSize Database dataGetSize

Definition at line 315 of file RevisionTest.php.

References newTestRevision().

RevisionTest::testGetText ( text,
title,
model,
format,
audience,
expectedText 
)

Database dataGetText

Definition at line 282 of file RevisionTest.php.

References $title, MediaWikiTestCase\hideDeprecated(), and newTestRevision().


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