MediaWiki  master
MediaWiki\Tests\Revision\RevisionArchiveRecordTest Class Reference

\MediaWiki\Revision\RevisionArchiveRecord \MediaWiki\Revision\RevisionRecord More...

Inheritance diagram for MediaWiki\Tests\Revision\RevisionArchiveRecordTest:
Collaboration diagram for MediaWiki\Tests\Revision\RevisionArchiveRecordTest:

Public Member Functions

 provideConstructor ()
 
 provideConstructorFailure ()
 
 testConstructorAndGetters (Title $title, UserIdentity $user, CommentStoreComment $comment, $row, RevisionSlots $slots, $wikiId=false)
 provideConstructor More...
 
 testConstructorFailure (Title $title, UserIdentity $user, CommentStoreComment $comment, $row, RevisionSlots $slots, $wikiId=false)
 provideConstructorFailure More...
 

Protected Member Functions

 newRevision (array $rowOverrides=[])
 

Detailed Description

\MediaWiki\Revision\RevisionArchiveRecord \MediaWiki\Revision\RevisionRecord

Definition at line 21 of file RevisionArchiveRecordTest.php.

Member Function Documentation

◆ newRevision()

MediaWiki\Tests\Revision\RevisionArchiveRecordTest::newRevision ( array  $rowOverrides = [])
protected
Parameters
array$rowOverrides
Returns
RevisionArchiveRecord

Definition at line 30 of file RevisionArchiveRecordTest.php.

References $title, $user, $value, as, Revision\SlotRecord\MAIN, Title\newFromText(), Revision\SlotRecord\newUnsaved(), and CommentStoreComment\newUnsavedComment().

◆ provideConstructor()

MediaWiki\Tests\Revision\RevisionArchiveRecordTest::provideConstructor ( )

◆ provideConstructorFailure()

MediaWiki\Tests\Revision\RevisionArchiveRecordTest::provideConstructorFailure ( )

◆ testConstructorAndGetters()

MediaWiki\Tests\Revision\RevisionArchiveRecordTest::testConstructorAndGetters ( Title  $title,
UserIdentity  $user,
CommentStoreComment  $comment,
  $row,
RevisionSlots  $slots,
  $wikiId = false 
)

provideConstructor

Parameters
Title$title
UserIdentity$user
CommentStoreComment$comment
object$row
RevisionSlots$slots
bool$wikiId

Definition at line 149 of file RevisionArchiveRecordTest.php.

References Revision\RevisionSlots\computeSha1(), Revision\RevisionSlots\computeSize(), Revision\RevisionSlots\getSlotRoles(), and Revision\RevisionRecord\RAW.

◆ testConstructorFailure()

MediaWiki\Tests\Revision\RevisionArchiveRecordTest::testConstructorFailure ( Title  $title,
UserIdentity  $user,
CommentStoreComment  $comment,
  $row,
RevisionSlots  $slots,
  $wikiId = false 
)

provideConstructorFailure

Parameters
Title$title
UserIdentity$user
CommentStoreComment$comment
object$row
RevisionSlots$slots
bool$wikiId

Definition at line 260 of file RevisionArchiveRecordTest.php.

References class.


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