MediaWiki  REL1_24
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 ()
 Revision::compressRevisionText
 testCompressRevisionTextUtf8Gzip ()
 Revision::compressRevisionText
 testConstructWithContent ()
 Revision::__construct
 testConstructWithText ()
 Revision::__construct
 testGetContent ($text, $title, $model, $format, $audience, $expectedSerialization)
 Database dataGetContent Revision::getContent
 testGetContentClone ()
 Tests whether $rev->getContent() returns a clone when needed.
 testGetContentFormat ($text, $title, $model, $format, $expectedFormat)
 Database dataGetContentFormat Revision::getContentFormat
 testGetContentHandler ($text, $title, $model, $format, $expectedClass)
 Database dataGetContentHandler Revision::getContentHandler
 testGetContentModel ($text, $title, $model, $format, $expectedModel)
 Database dataGetContentModel Revision::getContentModel
 testGetContentUncloned ()
 Tests whether $rev->getContent() returns the same object repeatedly if appropriate.
 testGetRawText ($text, $title, $model, $format, $audience, $expectedText)
 Database dataGetText Revision::getRawText
 testGetRevisionText ()
 Revision::getRevisionText
 testGetRevisionTextGzip ()
 Revision::getRevisionText
 testGetRevisionTextUtf8Legacy ()
 Revision::getRevisionText
 testGetRevisionTextUtf8LegacyGzip ()
 Revision::getRevisionText
 testGetRevisionTextUtf8Native ()
 Revision::getRevisionText
 testGetRevisionTextUtf8NativeGzip ()
 Revision::getRevisionText
 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 Revision::getText

Protected Member Functions

 setUp ()

Detailed Description

ContentHandler

Definition at line 6 of file RevisionTest.php.


Member Function Documentation

Definition at line 274 of file RevisionTest.php.

References array(), and Revision\FOR_PUBLIC.

Definition at line 233 of file RevisionTest.php.

References array().

Definition at line 254 of file RevisionTest.php.

References array().

Definition at line 213 of file RevisionTest.php.

References array().

Definition at line 366 of file RevisionTest.php.

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

Definition at line 349 of file RevisionTest.php.

References array().

Definition at line 314 of file RevisionTest.php.

References array(), and Revision\FOR_PUBLIC.

RevisionTest::newTestRevision ( text,
title = "Test",
model = CONTENT_MODEL_WIKITEXT,
format = null 
)

Reimplemented from MediaWikiTestCase.

Definition at line 48 of file RevisionTest.php.

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

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

Database dataGetContent Revision::getContent

Definition at line 302 of file RevisionTest.php.

References $content, $rev, $title, and newTestRevision().

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

Database Revision::getContent

Definition at line 428 of file RevisionTest.php.

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

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

Database dataGetContentFormat Revision::getContentFormat

Definition at line 248 of file RevisionTest.php.

References $rev, $title, and newTestRevision().

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

Database dataGetContentHandler Revision::getContentHandler

Definition at line 268 of file RevisionTest.php.

References $rev, $title, and newTestRevision().

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

Database dataGetContentModel Revision::getContentModel

Definition at line 227 of file RevisionTest.php.

References $rev, $title, and newTestRevision().

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

Database Revision::getContent

Definition at line 463 of file RevisionTest.php.

References $content, $rev, newTestRevision(), and Revision\RAW.

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

Database dataGetText Revision::getRawText

Definition at line 341 of file RevisionTest.php.

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

RevisionTest::testGetSha1 ( text,
model,
expected_hash 
)

Revision::getSha1 Database dataGetSha1

Definition at line 382 of file RevisionTest.php.

References $rev, and newTestRevision().

RevisionTest::testGetSize ( text,
model,
expected_size 
)

Revision::getSize Database dataGetSize

Definition at line 361 of file RevisionTest.php.

References $rev, and newTestRevision().

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

Database dataGetText Revision::getText

Definition at line 328 of file RevisionTest.php.

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


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