MediaWiki REL1_31
MediaWiki\Tests\Storage Namespace Reference

Classes

class  BlobStoreFactoryTest
 \MediaWiki\Storage\BlobStoreFactory More...
 
class  MutableRevisionRecordTest
 \MediaWiki\Storage\MutableRevisionRecord \MediaWiki\Storage\RevisionRecord More...
 
class  MutableRevisionSlotsTest
 \MediaWiki\Storage\MutableRevisionSlots More...
 
class  NameTableStoreTest
 
class  RevisionArchiveRecordTest
 \MediaWiki\Storage\RevisionArchiveRecord \MediaWiki\Storage\RevisionRecord More...
 
class  RevisionSlotsTest
 
class  RevisionStoreDbTest
 Database. More...
 
class  RevisionStoreRecordTest
 \MediaWiki\Storage\RevisionStoreRecord \MediaWiki\Storage\RevisionRecord More...
 
class  RevisionStoreTest
 
class  SlotRecordTest
 \MediaWiki\Storage\SlotRecord More...
 
class  SqlBlobStoreTest
 \MediaWiki\Storage\SqlBlobStore Database More...
 

Functions

 forceStandardPermissions ()
 
 provideAudienceCheckData ( $field)
 
 provideGetComment_audience ()
 
 provideGetSlot_audience ()
 
 provideGetUser_audience ()
 
 provideHasSameContent ()
 
 provideIsDeleted ()
 
 provideUserCanBitfield ()
 
 testGetComment_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetComment_audience
 
 testGetContent ()
 
 testGetContent_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetSlot_audience
 
 testGetSlot ()
 
 testGetSlot_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetSlot_audience
 
 testGetUser_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetUser_audience
 
 testHasSameContent ( $expected, RevisionRecord $record1, RevisionRecord $record2)
 provideHasSameContent \MediaWiki\Storage\RevisionRecord::hasSameContent Database
 
 testHasSlot ()
 
 testIsDeleted ( $revDeleted, $assertionMap)
 provideIsDeleted \MediaWiki\Storage\RevisionRecord::isDeleted
 
 testSerialization_fails ()
 
 testUserCanBitfield ( $bitField, $field, $userGroups, $title, $expected)
 provideUserCanBitfield \MediaWiki\Storage\RevisionRecord::userCanBitfield
 

Variables

trait RevisionRecordTests
 \MediaWiki\Storage\RevisionRecord
 

Function Documentation

◆ forceStandardPermissions()

◆ provideAudienceCheckData()

◆ provideGetComment_audience()

MediaWiki\Tests\Storage\provideGetComment_audience ( )

◆ provideGetSlot_audience()

MediaWiki\Tests\Storage\provideGetSlot_audience ( )

◆ provideGetUser_audience()

MediaWiki\Tests\Storage\provideGetUser_audience ( )

◆ provideHasSameContent()

MediaWiki\Tests\Storage\provideHasSameContent ( )

Definition at line 376 of file RevisionRecordTests.php.

◆ provideIsDeleted()

MediaWiki\Tests\Storage\provideIsDeleted ( )

Definition at line 459 of file RevisionRecordTests.php.

◆ provideUserCanBitfield()

MediaWiki\Tests\Storage\provideUserCanBitfield ( )

Definition at line 275 of file RevisionRecordTests.php.

References false, and true.

◆ testGetComment_audience()

MediaWiki\Tests\Storage\testGetComment_audience ( $visibility,
$groups,
$userCan,
$publicCan )

provideGetComment_audience

Definition at line 132 of file RevisionRecordTests.php.

References $rev, and MediaWiki\Tests\Storage\forceStandardPermissions().

◆ testGetContent()

MediaWiki\Tests\Storage\testGetContent ( )

Definition at line 267 of file RevisionRecordTests.php.

References $rev, and CONTENT_MODEL_TEXT.

◆ testGetContent_audience()

MediaWiki\Tests\Storage\testGetContent_audience ( $visibility,
$groups,
$userCan,
$publicCan )

provideGetSlot_audience

Definition at line 232 of file RevisionRecordTests.php.

References $rev, and MediaWiki\Tests\Storage\forceStandardPermissions().

◆ testGetSlot()

MediaWiki\Tests\Storage\testGetSlot ( )

Definition at line 252 of file RevisionRecordTests.php.

References $rev.

◆ testGetSlot_audience()

MediaWiki\Tests\Storage\testGetSlot_audience ( $visibility,
$groups,
$userCan,
$publicCan )

provideGetSlot_audience

Definition at line 186 of file RevisionRecordTests.php.

References $rev, and MediaWiki\Tests\Storage\forceStandardPermissions().

◆ testGetUser_audience()

MediaWiki\Tests\Storage\testGetUser_audience ( $visibility,
$groups,
$userCan,
$publicCan )

provideGetUser_audience

Definition at line 159 of file RevisionRecordTests.php.

References $rev, and MediaWiki\Tests\Storage\forceStandardPermissions().

◆ testHasSameContent()

MediaWiki\Tests\Storage\testHasSameContent ( $expected,
RevisionRecord $record1,
RevisionRecord $record2 )

provideHasSameContent \MediaWiki\Storage\RevisionRecord::hasSameContent Database

Definition at line 448 of file RevisionRecordTests.php.

◆ testHasSlot()

MediaWiki\Tests\Storage\testHasSlot ( )

Definition at line 260 of file RevisionRecordTests.php.

References $rev.

◆ testIsDeleted()

MediaWiki\Tests\Storage\testIsDeleted ( $revDeleted,
$assertionMap )

provideIsDeleted \MediaWiki\Storage\RevisionRecord::isDeleted

Definition at line 505 of file RevisionRecordTests.php.

References $rev.

◆ testSerialization_fails()

MediaWiki\Tests\Storage\testSerialization_fails ( )

Definition at line 93 of file RevisionRecordTests.php.

References $rev, and serialize().

◆ testUserCanBitfield()

MediaWiki\Tests\Storage\testUserCanBitfield ( $bitField,
$field,
$userGroups,
$title,
$expected )

provideUserCanBitfield \MediaWiki\Storage\RevisionRecord::userCanBitfield

Definition at line 365 of file RevisionRecordTests.php.

References MediaWiki\Tests\Storage\forceStandardPermissions().

Variable Documentation

◆ RevisionRecordTests

trait MediaWiki::Tests::Storage\RevisionRecordTests
Initial value:
{
protected abstract function newRevision( array $rowOverrides = [] )

\MediaWiki\Storage\RevisionRecord

Note
Expects to be used in classes that extend MediaWikiTestCase.

Definition at line 24 of file RevisionRecordTests.php.