MediaWiki
1.33.0
|
Variables | |
trait | McrReadNewSchemaOverride |
Trait providing schema overrides that allow tests to run against the intermediate MCR database schema for use during schema migration. More... | |
trait | McrSchemaOverride |
Trait providing schema overrides that allow tests to run against the post-migration MCR database schema. More... | |
trait | McrWriteBothSchemaOverride |
Trait providing schema overrides that allow tests to run against the intermediate MCR database schema for use during schema migration. More... | |
trait | PreMcrSchemaOverride |
Trait providing schema overrides that allow tests to run against the pre-MCR database schema. More... | |
trait | RevisionRecordTests |
\MediaWiki\Revision\RevisionRecord More... | |
|
private |
Definition at line 102 of file RevisionRecordTests.php.
Referenced by MediaWiki\Tests\Revision\testGetComment_audience(), MediaWiki\Tests\Revision\testGetContent_audience(), MediaWiki\Tests\Revision\testGetSlot_audience(), MediaWiki\Tests\Revision\RevisionStoreRecordTest\testGetSlot_audience_latest(), MediaWiki\Tests\Revision\testGetUser_audience(), and MediaWiki\Tests\Revision\testUserCanBitfield().
|
protected |
Definition at line 19 of file McrReadNewSchemaOverride.php.
References SCHEMA_COMPAT_READ_NEW, and SCHEMA_COMPAT_WRITE_BOTH.
|
protected |
Definition at line 26 of file McrReadNewSchemaOverride.php.
|
protected |
Definition at line 33 of file McrReadNewSchemaOverride.php.
|
private |
SlotRecord[] | $slots | |
int | $revId |
Definition at line 427 of file RevisionRecordTests.php.
References $title, Title\newFromText(), and CommentStoreComment\newUnsavedComment().
Referenced by MediaWiki\Tests\Revision\testHasSameContent().
|
private |
Definition at line 32 of file RevisionRecordTests.php.
References Revision\RevisionRecord\DELETED_COMMENT, Revision\RevisionRecord\DELETED_RESTRICTED, Revision\RevisionRecord\DELETED_USER, false, Revision\RevisionRecord\SUPPRESSED_ALL, and true.
Referenced by MediaWiki\Tests\Revision\provideGetComment_audience(), MediaWiki\Tests\Revision\provideGetSlot_audience(), MediaWiki\Tests\Revision\RevisionStoreRecordTest\provideGetSlot_audience_latest(), and MediaWiki\Tests\Revision\provideGetUser_audience().
MediaWiki\Tests\Revision\provideGetComment_audience | ( | ) |
Definition at line 98 of file RevisionRecordTests.php.
References Revision\RevisionRecord\DELETED_COMMENT, and MediaWiki\Tests\Revision\provideAudienceCheckData().
MediaWiki\Tests\Revision\provideGetSlot_audience | ( | ) |
Definition at line 178 of file RevisionRecordTests.php.
References Revision\RevisionRecord\DELETED_TEXT, and MediaWiki\Tests\Revision\provideAudienceCheckData().
MediaWiki\Tests\Revision\provideGetUser_audience | ( | ) |
Definition at line 151 of file RevisionRecordTests.php.
References Revision\RevisionRecord\DELETED_USER, and MediaWiki\Tests\Revision\provideAudienceCheckData().
MediaWiki\Tests\Revision\provideHasSameContent | ( | ) |
Definition at line 381 of file RevisionRecordTests.php.
References Revision\SlotRecord\MAIN, and Revision\SlotRecord\newUnsaved().
MediaWiki\Tests\Revision\provideIsDeleted | ( | ) |
Definition at line 470 of file RevisionRecordTests.php.
References Revision\RevisionRecord\DELETED_COMMENT, Revision\RevisionRecord\DELETED_RESTRICTED, Revision\RevisionRecord\DELETED_TEXT, and Revision\RevisionRecord\DELETED_USER.
MediaWiki\Tests\Revision\provideUserCanBitfield | ( | ) |
Definition at line 275 of file RevisionRecordTests.php.
References Revision\RevisionRecord\DELETED_COMMENT, Revision\RevisionRecord\DELETED_RESTRICTED, Revision\RevisionRecord\DELETED_TEXT, Revision\RevisionRecord\DELETED_USER, false, and true.
MediaWiki\Tests\Revision\testGetComment_audience | ( | $visibility, | |
$groups, | |||
$userCan, | |||
$publicCan | |||
) |
provideGetComment_audience
Definition at line 131 of file RevisionRecordTests.php.
References $rev, $user, Revision\RevisionRecord\FOR_PUBLIC, Revision\RevisionRecord\FOR_THIS_USER, MediaWiki\Tests\Revision\forceStandardPermissions(), and Revision\RevisionRecord\RAW.
MediaWiki\Tests\Revision\testGetContent | ( | ) |
Definition at line 267 of file RevisionRecordTests.php.
References $content, $rev, CONTENT_MODEL_TEXT, and Revision\SlotRecord\MAIN.
MediaWiki\Tests\Revision\testGetContent_audience | ( | $visibility, | |
$groups, | |||
$userCan, | |||
$publicCan | |||
) |
provideGetSlot_audience
Definition at line 232 of file RevisionRecordTests.php.
References $rev, $user, Revision\RevisionRecord\FOR_PUBLIC, Revision\RevisionRecord\FOR_THIS_USER, MediaWiki\Tests\Revision\forceStandardPermissions(), Revision\SlotRecord\MAIN, and Revision\RevisionRecord\RAW.
MediaWiki\Tests\Revision\testGetSlot | ( | ) |
Definition at line 252 of file RevisionRecordTests.php.
References $rev, and Revision\SlotRecord\MAIN.
MediaWiki\Tests\Revision\testGetSlot_audience | ( | $visibility, | |
$groups, | |||
$userCan, | |||
$publicCan | |||
) |
provideGetSlot_audience
Definition at line 185 of file RevisionRecordTests.php.
References $rev, $user, Revision\RevisionRecord\FOR_PUBLIC, Revision\RevisionRecord\FOR_THIS_USER, MediaWiki\Tests\Revision\forceStandardPermissions(), Revision\SlotRecord\MAIN, and Revision\RevisionRecord\RAW.
MediaWiki\Tests\Revision\testGetUser_audience | ( | $visibility, | |
$groups, | |||
$userCan, | |||
$publicCan | |||
) |
provideGetUser_audience
Definition at line 158 of file RevisionRecordTests.php.
References $rev, $user, Revision\RevisionRecord\FOR_PUBLIC, Revision\RevisionRecord\FOR_THIS_USER, MediaWiki\Tests\Revision\forceStandardPermissions(), and Revision\RevisionRecord\RAW.
MediaWiki\Tests\Revision\testHasSameContent | ( | $expected, | |
$recordSpec1, | |||
$recordSpec2 | |||
) |
provideHasSameContent \MediaWiki\Revision\RevisionRecord::hasSameContent Database
Definition at line 456 of file RevisionRecordTests.php.
References MediaWiki\Tests\Revision\makeHasSameContentTestRecord().
MediaWiki\Tests\Revision\testHasSlot | ( | ) |
Definition at line 260 of file RevisionRecordTests.php.
References $rev, and Revision\SlotRecord\MAIN.
MediaWiki\Tests\Revision\testIsDeleted | ( | $revDeleted, | |
$assertionMap | |||
) |
provideIsDeleted \MediaWiki\Revision\RevisionRecord::isDeleted
Definition at line 516 of file RevisionRecordTests.php.
MediaWiki\Tests\Revision\testIsReadyForInsertion | ( | ) |
Definition at line 523 of file RevisionRecordTests.php.
References $rev.
MediaWiki\Tests\Revision\testSerialization_fails | ( | ) |
Definition at line 92 of file RevisionRecordTests.php.
References $rev, class, and serialize().
MediaWiki\Tests\Revision\testUserCanBitfield | ( | $bitField, | |
$field, | |||
$userGroups, | |||
$title, | |||
$expected | |||
) |
provideUserCanBitfield \MediaWiki\Revision\RevisionRecord::userCanBitfield
Definition at line 365 of file RevisionRecordTests.php.
References $title, $user, MediaWiki\Tests\Revision\forceStandardPermissions(), Title\newFromText(), and Revision\RevisionRecord\userCanBitfield().
trait MediaWiki::Tests::Revision\McrReadNewSchemaOverride |
Trait providing schema overrides that allow tests to run against the intermediate MCR database schema for use during schema migration.
Definition at line 11 of file McrReadNewSchemaOverride.php.
trait MediaWiki::Tests::Revision\McrSchemaOverride |
Trait providing schema overrides that allow tests to run against the post-migration MCR database schema.
Definition at line 11 of file McrSchemaOverride.php.
trait MediaWiki::Tests::Revision\McrWriteBothSchemaOverride |
Trait providing schema overrides that allow tests to run against the intermediate MCR database schema for use during schema migration.
Definition at line 11 of file McrWriteBothSchemaOverride.php.
trait MediaWiki::Tests::Revision\PreMcrSchemaOverride |
Trait providing schema overrides that allow tests to run against the pre-MCR database schema.
Definition at line 10 of file PreMcrSchemaOverride.php.
trait MediaWiki::Tests::Revision\RevisionRecordTests |
\MediaWiki\Revision\RevisionRecord
Definition at line 23 of file RevisionRecordTests.php.