MediaWiki
REL1_22
|
Definition at line 6 of file RevisionTest.php.
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 |
||
) |
string | $text | |
string | $title | |
string | $model | |
null | $format |
Definition at line 186 of file RevisionTest.php.
References $rev, $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 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 383 of file RevisionTest.php.
References $rev, $title, array(), MediaWikiTestCase\hideDeprecated(), ContentHandler\makeContent(), and Title\newFromText().
Definition at line 366 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 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().
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 Revision\getRevisionText().
Definition at line 127 of file RevisionTest.php.
References MediaWikiTestCase\checkPHPExtension(), and Revision\getRevisionText().
Definition at line 86 of file RevisionTest.php.
References Revision\getRevisionText().
Definition at line 112 of file RevisionTest.php.
References MediaWikiTestCase\checkPHPExtension(), and Revision\getRevisionText().
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().