MediaWiki  master
MediaWiki\Tests\Revision\SlotRecordTest Class Reference

\MediaWiki\Revision\SlotRecord More...

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

Public Member Functions

 provideHashStability ()
 
 provideHasSameContent ()
 
 provideIncomplete ()
 
 provideInvalidConstruction ()
 
 provideNewSaved_InvalidArgumentException ()
 
 provideNewSaved_LogicException ()
 
 testCompleteConstruction ()
 
 testConstructionDeferred ()
 
 testGetAddress_fails ()
 
 testGetContentId_fails ()
 
 testGetOrigin_fails (SlotRecord $record)
 provideIncomplete More...
 
 testGetRevision_fails (SlotRecord $record)
 provideIncomplete More...
 
 testHashComputed ()
 
 testHashStability ( $text, $hash)
 provideHashStability More...
 
 testHasSameContent (SlotRecord $a, SlotRecord $b, $sameContent)
 provideHasSameContent More...
 
 testInvalidConstruction ( $row, $content)
 provideInvalidConstruction More...
 
 testNewInherited ()
 
 testNewSaved ()
 
 testNewSaved_InvalidArgumentException ( $revisionId, $contentId, $contentAddress, SlotRecord $protoSlot)
 provideNewSaved_InvalidArgumentException More...
 
 testNewSaved_LogicException ( $revisionId, $contentId, $contentAddress, SlotRecord $protoSlot)
 provideNewSaved_LogicException More...
 
 testNewUnsaved ()
 
 testNewWithSuppressedContent ()
 

Private Member Functions

 makeRow ( $data=[])
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiUnitTestCase
 setUp ()
 
 tearDown ()
 

Detailed Description

\MediaWiki\Revision\SlotRecord

Definition at line 16 of file SlotRecordTest.php.

Member Function Documentation

◆ makeRow()

◆ provideHashStability()

MediaWiki\Tests\Revision\SlotRecordTest::provideHashStability ( )

Definition at line 163 of file SlotRecordTest.php.

◆ provideHasSameContent()

MediaWiki\Tests\Revision\SlotRecordTest::provideHasSameContent ( )

◆ provideIncomplete()

MediaWiki\Tests\Revision\SlotRecordTest::provideIncomplete ( )

◆ provideInvalidConstruction()

MediaWiki\Tests\Revision\SlotRecordTest::provideInvalidConstruction ( )

Definition at line 104 of file SlotRecordTest.php.

References null, and object.

◆ provideNewSaved_InvalidArgumentException()

MediaWiki\Tests\Revision\SlotRecordTest::provideNewSaved_InvalidArgumentException ( )

◆ provideNewSaved_LogicException()

MediaWiki\Tests\Revision\SlotRecordTest::provideNewSaved_LogicException ( )

Definition at line 258 of file SlotRecordTest.php.

References MediaWiki\Tests\Revision\SlotRecordTest\makeRow(), and null.

◆ testCompleteConstruction()

MediaWiki\Tests\Revision\SlotRecordTest::testCompleteConstruction ( )

◆ testConstructionDeferred()

MediaWiki\Tests\Revision\SlotRecordTest::testConstructionDeferred ( )

◆ testGetAddress_fails()

MediaWiki\Tests\Revision\SlotRecordTest::testGetAddress_fails ( )

◆ testGetContentId_fails()

MediaWiki\Tests\Revision\SlotRecordTest::testGetContentId_fails ( )

◆ testGetOrigin_fails()

MediaWiki\Tests\Revision\SlotRecordTest::testGetOrigin_fails ( SlotRecord  $record)

◆ testGetRevision_fails()

MediaWiki\Tests\Revision\SlotRecordTest::testGetRevision_fails ( SlotRecord  $record)

◆ testHashComputed()

MediaWiki\Tests\Revision\SlotRecordTest::testHashComputed ( )

◆ testHashStability()

MediaWiki\Tests\Revision\SlotRecordTest::testHashStability (   $text,
  $hash 
)

provideHashStability

Definition at line 171 of file SlotRecordTest.php.

References Revision\SlotRecord\base36Sha1(), Revision\SlotRecord\MAIN, and Revision\SlotRecord\newUnsaved().

◆ testHasSameContent()

MediaWiki\Tests\Revision\SlotRecordTest::testHasSameContent ( SlotRecord  $a,
SlotRecord  $b,
  $sameContent 
)

provideHasSameContent

Definition at line 411 of file SlotRecordTest.php.

References Revision\SlotRecord\hasSameContent().

◆ testInvalidConstruction()

MediaWiki\Tests\Revision\SlotRecordTest::testInvalidConstruction (   $row,
  $content 
)

provideInvalidConstruction

Definition at line 115 of file SlotRecordTest.php.

References $content, and class.

◆ testNewInherited()

MediaWiki\Tests\Revision\SlotRecordTest::testNewInherited ( )

◆ testNewSaved()

MediaWiki\Tests\Revision\SlotRecordTest::testNewSaved ( )

◆ testNewSaved_InvalidArgumentException()

MediaWiki\Tests\Revision\SlotRecordTest::testNewSaved_InvalidArgumentException (   $revisionId,
  $contentId,
  $contentAddress,
SlotRecord  $protoSlot 
)

provideNewSaved_InvalidArgumentException

Definition at line 306 of file SlotRecordTest.php.

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

◆ testNewSaved_LogicException()

MediaWiki\Tests\Revision\SlotRecordTest::testNewSaved_LogicException (   $revisionId,
  $contentId,
  $contentAddress,
SlotRecord  $protoSlot 
)

provideNewSaved_LogicException

Definition at line 285 of file SlotRecordTest.php.

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

◆ testNewUnsaved()

MediaWiki\Tests\Revision\SlotRecordTest::testNewUnsaved ( )

Definition at line 89 of file SlotRecordTest.php.

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

◆ testNewWithSuppressedContent()

MediaWiki\Tests\Revision\SlotRecordTest::testNewWithSuppressedContent ( )

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