MediaWiki  master
WikiPageMcrReadNewDbTest Class Reference

Tests WikiPage against the intermediate MCR DB schema for use during schema migration. More...

Inheritance diagram for WikiPageMcrReadNewDbTest:
Collaboration diagram for WikiPageMcrReadNewDbTest:

Public Member Functions

 testGetDeletionUpdates ()
 
- Public Member Functions inherited from WikiPageDbTestBase
 __construct ( $name=null, array $data=[], $dataName='')
 
 dataReplaceSection ()
 
 provideGetAutoDeleteReason ()
 
 provideGetParserOutput ()
 
 provideGetRedirectTarget ()
 
 provideHasViewableContent ()
 
 provideIsCountable ()
 
 provideNewFromRowSuccess ()
 
 providePreSaveTransform ()
 
 provideTestDoUpdateRestrictions_setBasicRestrictions ()
 
 provideTestInsertProtectNullRevision ()
 
 provideTestNewFromId_returnsNullOnBadPageId ()
 
 provideUpdateRedirectOn ()
 
 testDoDeleteArticle ()
 Undeletion is covered in PageArchiveTest::testUndeleteRevisions() TODO: Revision deletion. More...
 
 testDoDeleteArticleReal_suppress ()
 TODO: Test more stuff about suppression. More...
 
 testDoDeleteArticleReal_user0 ()
 WikiPage::doDeleteArticleReal. More...
 
 testDoDeleteArticleReal_userSysop ()
 WikiPage::doDeleteArticleReal. More...
 
 testDoDeleteUpdates ()
 WikiPage::doDeleteUpdates. More...
 
 testDoEditContent ()
 WikiPage::doEditContent WikiPage::prepareContentForEdit. More...
 
 testDoEditContent_twice ()
 WikiPage::doEditContent. More...
 
 testDoEditUpdates ()
 WikiPage::doEditUpdates. More...
 
 testDoRollback ()
 WikiPage::doRollback WikiPage::commitRollback More...
 
 testDoRollbackFailureSameContent ()
 WikiPage::doRollback WikiPage::commitRollback More...
 
 testDoRollbackTagging ()
 Tests tagging for edits that do rollback action WikiPage::doRollback. More...
 
 testDoUpdateRestrictions_failsOnReadOnly ()
 WikiPage::doUpdateRestrictions More...
 
 testDoUpdateRestrictions_logEntryTypeAndAction ()
 WikiPage::doUpdateRestrictions More...
 
 testDoUpdateRestrictions_returnsGoodIfNothingChanged ()
 WikiPage::doUpdateRestrictions More...
 
 testDoUpdateRestrictions_setBasicRestrictions ( $pageExists, array $limit, array $expiry, array $expectedRestrictions, array $expectedRestrictionExpiries)
 provideTestDoUpdateRestrictions_setBasicRestrictions WikiPage::doUpdateRestrictions More...
 
 testExists ()
 WikiPage::exists. More...
 
 testGetAutoDeleteReason ( $edits, $expectedResult, $expectedHistory)
 provideGetAutoDeleteReason WikiPage::getAutoDeleteReason More...
 
 testGetContent ()
 WikiPage::getContent. More...
 
 testGetDeletionUpdates ()
 
 testGetDerivedDataUpdater ()
 WikiPage::newPageUpdater WikiPage::getDerivedDataUpdater More...
 
 testGetOldestRevision ()
 WikiPage::getOldestRevision More...
 
 testGetParserOutput ( $model, $text, $expectedHtml)
 provideGetParserOutput WikiPage::getParserOutput More...
 
 testGetParserOutput_badrev ()
 WikiPage::getParserOutput More...
 
 testGetParserOutput_nonexisting ()
 WikiPage::getParserOutput More...
 
 testGetRedirectTarget ( $title, $model, $text, $target)
 provideGetRedirectTarget WikiPage::getRedirectTarget More...
 
 testGetRevision ()
 WikiPage::getRevision. More...
 
 testHasViewableContent ( $title, $viewable, $create=false)
 provideHasViewableContent WikiPage::hasViewableContent More...
 
 testInsertOn ()
 WikiPage::insertOn More...
 
 testInsertOn_idSpecified ()
 WikiPage::insertOn More...
 
 testInsertProtectNullRevision ( $revCommentMsg, array $limit, array $expiry, $cascade, $reason, $user, $expectedComment)
 provideTestInsertProtectNullRevision WikiPage::insertProtectNullRevision WikiPage::protectDescription More...
 
 testInsertRedirectEntry_doesNotInsertIfPageLatestIncorrect ()
 WikiPage::insertRedirectEntry More...
 
 testInsertRedirectEntry_insertsRedirectEntry ()
 WikiPage::insertRedirectEntry More...
 
 testInsertRedirectEntry_insertsRedirectEntryWithPageLatest ()
 WikiPage::insertRedirectEntry More...
 
 testIsCountable ( $title, $model, $text, $mode, $expected)
 provideIsCountable WikiPage::isCountable More...
 
 testIsRedirect ( $title, $model, $text, $target)
 provideGetRedirectTarget WikiPage::isRedirect More...
 
 testLoadPageData ()
 WikiPage::loadPageData WikiPage::wasLoadedFrom More...
 
 testNewFromId_appearsToFetchCorrectRow ()
 WikiPage::newFromID More...
 
 testNewFromId_returnsNullOnBadPageId ( $pageId)
 WikiPage::newFromID provideTestNewFromId_returnsNullOnBadPageId More...
 
 testNewFromId_returnsNullOnNonExistingId ()
 WikiPage::newFromID More...
 
 testNewFromRow ( $row, $assertions)
 WikiPage::newFromRow WikiPage::loadFromRow provideNewFromRowSuccess More...
 
 testNewPageUpdater ()
 WikiPage::newPageUpdater WikiPage::getDerivedDataUpdater More...
 
 testPrepareContentForEdit ()
 WikiPage::prepareContentForEdit. More...
 
 testReplaceSectionAtRev ( $title, $model, $text, $section, $with, $sectionTitle, $expected)
 dataReplaceSection WikiPage::replaceSectionAtRev More...
 
 testReplaceSectionContent ( $title, $model, $text, $section, $with, $sectionTitle, $expected)
 dataReplaceSection WikiPage::replaceSectionContent More...
 
 testUpdateCategoryCounts ()
 WikiPage::updateCategoryCounts More...
 
 testUpdateIfNewerOn_newerRevision ()
 WikiPage::updateIfNewerOn More...
 
 testUpdateIfNewerOn_olderRevision ()
 WikiPage::updateIfNewerOn More...
 
 testUpdateRedirectOn ( $initialText, $initialRedirectState, $redirectTitle, $lastRevIsRedirect, $expectedSuccess, $expectedRowCount)
 provideUpdateRedirectOn WikiPage::updateRedirectOn More...
 
 testUpdateRevisionOn_existingPage ()
 WikiPage::updateRevisionOn More...
 
 testUpdateRevisionOn_NonExistingPage ()
 WikiPage::updateRevisionOn More...
 
 testWikiPageFactory ()
 WikiPage::factory More...
 

Protected Member Functions

 getContentHandlerUseDB ()
 
- Protected Member Functions inherited from WikiPageDbTestBase
 addCoreDBData ()
 
 assertPreparedEditEquals (PreparedEdit $edit, PreparedEdit $edit2, $message='')
 
 assertPreparedEditNotEquals (PreparedEdit $edit, PreparedEdit $edit2, $message='')
 
 createMockContent (ContentHandler $handler, $text)
 
 createPage ( $page, $content, $model=null, $user=null)
 
 defineMockContentModelForUpdateTesting ( $name)
 
 getContentHandlerUseDB ()
 
 getMcrMigrationStage ()
 
 getMcrTablesToReset ()
 
 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Additional Inherited Members

- Static Public Attributes inherited from WikiPageDbTestBase
static $sections
 

Detailed Description

Tests WikiPage against the intermediate MCR DB schema for use during schema migration.

WikiPage

WikiPage Storage ContentHandler Database medium

Definition at line 17 of file WikiPageMcrReadNewDbTest.php.

Member Function Documentation

◆ getContentHandlerUseDB()

WikiPageMcrReadNewDbTest::getContentHandlerUseDB ( )
protected

Definition at line 21 of file WikiPageMcrReadNewDbTest.php.

◆ testGetDeletionUpdates()


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