MediaWiki  REL1_22
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 ()
 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 272 of file RevisionTest.php.

References array(), and Revision\FOR_PUBLIC.

Definition at line 231 of file RevisionTest.php.

References array().

Definition at line 252 of file RevisionTest.php.

References array().

Definition at line 211 of file RevisionTest.php.

References array().

Definition at line 346 of file RevisionTest.php.

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

Definition at line 329 of file RevisionTest.php.

References array().

Definition at line 293 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 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 286 of file RevisionTest.php.

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

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

Database Revision::getContent

Definition at line 404 of file RevisionTest.php.

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

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

Database dataGetContentFormat Revision::getContentFormat

Definition at line 246 of file RevisionTest.php.

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

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

Database dataGetContentHandler Revision::getContentHandler

Definition at line 266 of file RevisionTest.php.

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

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

Database dataGetContentModel Revision::getContentModel

Definition at line 225 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 438 of file RevisionTest.php.

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

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

Database dataGetText Revision::getRawText

Definition at line 320 of file RevisionTest.php.

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

RevisionTest::testGetSha1 ( text,
model,
expected_hash 
)

Revision::getSha1 Database dataGetSha1

Definition at line 358 of file RevisionTest.php.

References $rev, and newTestRevision().

RevisionTest::testGetSize ( text,
model,
expected_size 
)

Revision::getSize Database dataGetSize

Definition at line 341 of file RevisionTest.php.

References $rev, and newTestRevision().

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

Database dataGetText Revision::getText

Definition at line 307 of file RevisionTest.php.

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


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