MediaWiki  master
PageArchiveMcrTest Class Reference

Test class for page archiving, using the new MCR schema. More...

Inheritance diagram for PageArchiveMcrTest:
Collaboration diagram for PageArchiveMcrTest:

Public Member Functions

 testListRevisions_slots ()
 PageArchive::listRevisions. More...
 
- Public Member Functions inherited from PageArchiveTestBase
 __construct ( $name=null, array $data=[], $dataName='')
 
 provideGetTextFromRowThrowsInvalidArgumentException ()
 
 testGetArchivedRevision ()
 PageArchive::getRevision. More...
 
 testGetLastRevisionId ()
 PageArchive::getLastRevisionId. More...
 
 testGetPreviousRevision ()
 PageArchive::getPreviousRevision. More...
 
 testGetRevision ()
 PageArchive::getRevision. More...
 
 testIsDeleted ()
 PageArchive::isDeleted. More...
 
 testListPagesByPrefix ()
 PageArchive::listPagesBySearch. More...
 
 testListPagesBySearch ()
 PageArchive::listPagesBySearch. More...
 
 testListRevisions ()
 PageArchive::listRevisions. More...
 
 testUndeleteRevisions ()
 PageArchive::undelete PageArchive::undeleteRevisions. More...
 

Protected Member Functions

 getExpectedArchiveRows ()
 
- Protected Member Functions inherited from PageArchiveTestBase
 addCoreDBData ()
 
 getContentHandlerUseDB ()
 
 getExpectedArchiveRows ()
 
 getMcrMigrationStage ()
 
 getMcrTablesToReset ()
 
 setUp ()
 

Additional Inherited Members

- Protected Attributes inherited from PageArchiveTestBase
 $archivedPage
 
RevisionRecord $firstRev
 Revision of the first (initial) edit. More...
 
 $ipEditor
 A logged out user who edited the page before it was archived. More...
 
RevisionRecord $ipRev
 Revision of the IP edit (the second edit) More...
 
int $pageId
 

Detailed Description

Test class for page archiving, using the new MCR schema.

ContentHandler Database ^— important, causes temporary tables to be used instead of the real database

medium ^— important, causes tests not to fail with timeout

Definition at line 16 of file PageArchiveMcrTest.php.

Member Function Documentation

◆ getExpectedArchiveRows()

PageArchiveMcrTest::getExpectedArchiveRows ( )
protected

Definition at line 41 of file PageArchiveMcrTest.php.

References PageArchiveTestBase\$ipEditor, User\newFromName(), null, and string.

◆ testListRevisions_slots()

PageArchiveMcrTest::testListRevisions_slots ( )

PageArchive::listRevisions.

Definition at line 23 of file PageArchiveMcrTest.php.

References as.


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