27 $numberOfSlots = count(
$rev->getSlotRoles() );
33 [
'slot_revision_id' => $rev->
getId() ],
34 [ [ (
string)$numberOfSlots ] ]
38 $revQuery = $store->getSlotsQueryInfo( [
'content' ] );
44 'slot_revision_id' => $rev->
getId(),
46 [ [ (
string)$numberOfSlots ] ],
53 [
'revision',
'text' ],
55 [
'rev_id' => $rev->
getId(),
'rev_text_id > 0' ],
58 [
'text' => [
'JOIN', [
'rev_text_id = old_id' ] ] ]
61 parent::assertRevisionExistsInDatabase(
$rev );
69 parent::assertSameSlotContent( $a, $b );
76 foreach ( parent::provideInsertRevisionOn_successes() as $case ) {
80 yield
'Multi-slot revision insertion' => [
88 'timestamp' =>
'20171117010101',
95 foreach ( parent::provideNewNullRevision() as $case ) {
100 Title::newFromText(
'UTPage_notAutoCreated' ),
107 CommentStoreComment::newUnsavedComment( __METHOD__ .
' comment multi' ),
113 $queryInfo = $store->getQueryInfo();
121 foreach ( parent::provideNewMutableRevisionFromArray() as $case ) {
125 yield
'Basic array, multiple roles' => [
129 'timestamp' =>
'20171017114835',
130 'user_text' =>
'111.0.1.2',
132 'minor_edit' =>
false,
136 'sha1' =>
'89qs83keq9c9ccw9olvvm4oc9oq50ii',
137 'comment' =>
'Goat Comment!',
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Content object implementation for representing flat text.
Represents a title within MediaWiki.
Content object for wiki text pages.
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev