MediaWiki
REL1_24
|
Definition at line 6 of file RevisionTest.php.
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 |
||
) |
string | $text | |
string | $title | |
string | $model | |
string | $format |
Definition at line 186 of file RevisionTest.php.
References $content, $rev, $title, array(), ContentHandler\makeContent(), and Title\newFromText().
Referenced by testGetContent(), testGetContentFormat(), testGetContentHandler(), testGetContentModel(), testGetContentUncloned(), testGetRawText(), testGetSha1(), testGetSize(), and testGetText().
RevisionTest::setUp | ( | ) | [protected] |
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.
Revision::compressRevisionText
Definition at line 142 of file RevisionTest.php.
References Revision\compressRevisionText(), and Revision\getRevisionText().
Revision::compressRevisionText
Definition at line 159 of file RevisionTest.php.
References MediaWikiTestCase\checkPHPExtension(), Revision\compressRevisionText(), Revision\getRevisionText(), and MediaWikiTestCase\setMwGlobals().
Definition at line 407 of file RevisionTest.php.
References $rev, $title, array(), MediaWikiTestCase\hideDeprecated(), ContentHandler\makeContent(), and Title\newFromText().
Definition at line 390 of file RevisionTest.php.
References $rev, array(), and MediaWikiTestCase\hideDeprecated().
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().
Definition at line 60 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 72 of file RevisionTest.php.
References MediaWikiTestCase\checkPHPExtension(), and Revision\getRevisionText().
Definition at line 99 of file RevisionTest.php.
References $GLOBALS, and Revision\getRevisionText().
Definition at line 127 of file RevisionTest.php.
References $GLOBALS, MediaWikiTestCase\checkPHPExtension(), and Revision\getRevisionText().
Definition at line 86 of file RevisionTest.php.
References $GLOBALS, and Revision\getRevisionText().
Definition at line 112 of file RevisionTest.php.
References $GLOBALS, MediaWikiTestCase\checkPHPExtension(), and Revision\getRevisionText().
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().