MediaWiki
master
|
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. |
Definition at line 6 of file RevisionTest.php.
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 |
||
) |
string | $text | |
string | $title | |
string | $model |
Definition at line 166 of file RevisionTest.php.
References $title, array(), ContentHandler\makeContent(), and Title\newFromText().
Referenced by testGetContent(), testGetContentFormat(), testGetContentHandler(), testGetContentModel(), testGetContentUncloned(), testGetRawText(), testGetSha1(), testGetSize(), and testGetText().
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.
Definition at line 126 of file RevisionTest.php.
References Revision\compressRevisionText(), and Revision\getRevisionText().
Definition at line 140 of file RevisionTest.php.
References Revision\compressRevisionText(), Revision\getRevisionText(), and global.
Definition at line 353 of file RevisionTest.php.
References $title, array(), MediaWikiTestCase\hideDeprecated(), ContentHandler\makeContent(), and Title\newFromText().
Definition at line 339 of file RevisionTest.php.
References array(), and MediaWikiTestCase\hideDeprecated().
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().
Definition at line 56 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 65 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 88 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 112 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 78 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 98 of file RevisionTest.php.
References Revision\getRevisionText().
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().