MediaWiki  master
MediaWiki\Tests\Storage\RevisionSlotsUpdateTest Class Reference

\MediaWiki\Storage\RevisionSlotsUpdate More...

Inheritance diagram for MediaWiki\Tests\Storage\RevisionSlotsUpdateTest:
Collaboration diagram for MediaWiki\Tests\Storage\RevisionSlotsUpdateTest:

Public Member Functions

 provideHasSameUpdates ()
 
 provideNewFromContent ()
 
 provideNewFromRevisionSlots ()
 
 testApplyUpdate ()
 
 testConstructor ()
 
 testGetModifiedRoles ()
 
 testGetRemovedRoles ()
 
 testHasSameUpdates (RevisionSlotsUpdate $a, RevisionSlotsUpdate $b, $same)
 provideHasSameUpdates More...
 
 testModifySlot ()
 
 testNewFromContent (array $newContent, RevisionSlots $parentSlots=null, array $modified=[])
 provideNewFromContent More...
 
 testNewFromRevisionSlots (RevisionSlots $newSlots, RevisionSlots $parentSlots=null, array $modified=[], array $removed=[])
 provideNewFromRevisionSlots More...
 
 testRemoveSlot ()
 

Private Member Functions

 newSavedSlot ( $role, Content $content)
 

Detailed Description

\MediaWiki\Storage\RevisionSlotsUpdate

Definition at line 17 of file RevisionSlotsUpdateTest.php.

Member Function Documentation

◆ newSavedSlot()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::newSavedSlot (   $role,
Content  $content 
)
private
Parameters
string$role
Content$content
Returns
SlotRecord

Definition at line 252 of file RevisionSlotsUpdateTest.php.

References Revision\SlotRecord\newSaved(), and Revision\SlotRecord\newUnsaved().

Referenced by MediaWiki\Tests\Storage\RevisionSlotsUpdateTest\testApplyUpdate().

◆ provideHasSameUpdates()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::provideHasSameUpdates ( )

Definition at line 210 of file RevisionSlotsUpdateTest.php.

References false, Revision\SlotRecord\newUnsaved(), and true.

◆ provideNewFromContent()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::provideNewFromContent ( )

Definition at line 65 of file RevisionSlotsUpdateTest.php.

References Revision\SlotRecord\newUnsaved(), and null.

◆ provideNewFromRevisionSlots()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::provideNewFromRevisionSlots ( )

Definition at line 19 of file RevisionSlotsUpdateTest.php.

References Revision\SlotRecord\newUnsaved(), and null.

◆ testApplyUpdate()

◆ testConstructor()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testConstructor ( )

Definition at line 103 of file RevisionSlotsUpdateTest.php.

References Revision\SlotRecord\newUnsaved().

◆ testGetModifiedRoles()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testGetModifiedRoles ( )

Definition at line 182 of file RevisionSlotsUpdateTest.php.

References Revision\SlotRecord\MAIN.

◆ testGetRemovedRoles()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testGetRemovedRoles ( )

◆ testHasSameUpdates()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testHasSameUpdates ( RevisionSlotsUpdate  $a,
RevisionSlotsUpdate  $b,
  $same 
)

provideHasSameUpdates

Definition at line 242 of file RevisionSlotsUpdateTest.php.

References MediaWiki\Storage\RevisionSlotsUpdate\hasSameUpdates().

◆ testModifySlot()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testModifySlot ( )

Definition at line 121 of file RevisionSlotsUpdateTest.php.

References Revision\SlotRecord\newUnsaved().

◆ testNewFromContent()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testNewFromContent ( array  $newContent,
RevisionSlots  $parentSlots = null,
array  $modified = [] 
)

provideNewFromContent

Parameters
Content[]$newContent
RevisionSlots$parentSlots
string[]$modified

Definition at line 92 of file RevisionSlotsUpdateTest.php.

References MediaWiki\Storage\RevisionSlotsUpdate\newFromContent().

◆ testNewFromRevisionSlots()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testNewFromRevisionSlots ( RevisionSlots  $newSlots,
RevisionSlots  $parentSlots = null,
array  $modified = [],
array  $removed = [] 
)

provideNewFromRevisionSlots

Parameters
RevisionSlots$newSlots
RevisionSlots$parentSlots
string[]$modified
string[]$removed

Definition at line 49 of file RevisionSlotsUpdateTest.php.

References as, Revision\RevisionSlots\getSlot(), and MediaWiki\Storage\RevisionSlotsUpdate\newFromRevisionSlots().

◆ testRemoveSlot()

MediaWiki\Tests\Storage\RevisionSlotsUpdateTest::testRemoveSlot ( )

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