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 More...
 
 testGetContent ()
 
 testGetContent_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetSlot_audience More...
 
 testGetSlot ()
 
 testGetSlot_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetSlot_audience More...
 
 testGetUser_audience ( $visibility, $groups, $userCan, $publicCan)
 provideGetUser_audience More...
 
 testHasSameContent ( $expected, RevisionRecord $record1, RevisionRecord $record2)
 provideHasSameContent \MediaWiki\Storage\RevisionRecord::hasSameContent Database More...
 
 testHasSlot ()
 
 testIsDeleted ( $revDeleted, $assertionMap)
 provideIsDeleted \MediaWiki\Storage\RevisionRecord::isDeleted More...
 
 testSerialization_fails ()
 
 testUserCanBitfield ( $bitField, $field, $userGroups, $title, $expected)
 provideUserCanBitfield \MediaWiki\Storage\RevisionRecord::userCanBitfield More...
 

Variables

trait RevisionRecordTests
 \MediaWiki\Storage\RevisionRecord More...
 

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 ( )

◆ provideIsDeleted()

◆ provideUserCanBitfield()

◆ testGetComment_audience()

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

◆ 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 
)

◆ 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 
)

◆ testGetUser_audience()

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

◆ testHasSameContent()

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

◆ 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, and as.

◆ testSerialization_fails()

MediaWiki\Tests\Storage\testSerialization_fails ( )

Definition at line 93 of file RevisionRecordTests.php.

References $rev, class, and serialize().

◆ testUserCanBitfield()

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

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.

array
the array() calling protocol came about after MediaWiki 1.4rc1.