Lines Matching refs:rev

129 		$rev = new MutableRevisionRecord( $title );
130 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
131 $rev->setTimestamp( '20180101000003' );
132 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
141 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
144 $rr = $renderer->getRenderedRevision( $rev, $options );
148 $this->assertSame( $rev, $rr->getRevision() );
165 $rev = new MutableRevisionRecord( $title );
166 $rev->setId( 21 ); // current!
167 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
168 $rev->setTimestamp( '20180101000003' );
169 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
177 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
180 $rr = $renderer->getRenderedRevision( $rev, $options );
184 $this->assertSame( $rev, $rr->getRevision() );
201 $rev = new MutableRevisionRecord( $title );
202 $rev->setId( 21 ); // current!
203 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
204 $rev->setTimestamp( '20180101000003' );
205 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
213 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
216 $rr = $renderer->getRenderedRevision( $rev, $options, null, [ 'use-master' => true ] );
231 $rev = new MutableRevisionRecord( $title );
232 $rev->setId( 21 ); // current!
233 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
234 $rev->setTimestamp( '20180101000003' );
235 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
238 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
244 $rev,
259 $rev = new MutableRevisionRecord( $title );
260 $rev->setId( 11 ); // old!
261 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
262 $rev->setTimestamp( '20180101000003' );
263 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
271 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
274 $rr = $renderer->getRenderedRevision( $rev, $options );
278 $this->assertSame( $rev, $rr->getRevision() );
295 $rev = new MutableRevisionRecord( $title );
296 $rev->setId( 11 ); // old!
297 $rev->setVisibility( RevisionRecord::DELETED_TEXT ); // suppressed!
298 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
299 $rev->setTimestamp( '20180101000003' );
300 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
308 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
311 $rr = $renderer->getRenderedRevision( $rev, $options );
320 $rev = new MutableRevisionRecord( $title );
321 $rev->setId( 11 ); // old!
322 $rev->setVisibility( RevisionRecord::DELETED_TEXT ); // suppressed!
323 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
324 $rev->setTimestamp( '20180101000003' );
325 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
333 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
337 $rr = $renderer->getRenderedRevision( $rev, $options, $sysop );
342 $this->assertSame( $rev, $rr->getRevision() );
360 $rev = new MutableRevisionRecord( $title );
361 $rev->setId( 11 ); // old!
362 $rev->setVisibility( RevisionRecord::DELETED_TEXT ); // suppressed!
363 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
364 $rev->setTimestamp( '20180101000003' );
365 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
373 $rev->setContent( SlotRecord::MAIN, new WikitextContent( $text ) );
377 $rev,
385 $this->assertSame( $rev, $rr->getRevision() );
390 $this->assertSame( $rev->getId(), $parserOutput->getCacheRevisionId() );
391 $this->assertSame( $rev->getTimestamp(), $parserOutput->getTimestamp() );
408 $rev = new MutableRevisionRecord( $title );
409 $rev->setUser( new UserIdentityValue( 9, 'Frank' ) );
410 $rev->setTimestamp( '20180101000003' );
411 $rev->setComment( CommentStoreComment::newUnsavedComment( '' ) );
413 $rev->setContent( SlotRecord::MAIN, new WikitextContent( '[[Kittens]]' ) );
414 $rev->setContent( 'aux', new WikitextContent( '[[Goats]]' ) );
416 $rr = $renderer->getRenderedRevision( $rev );
478 $rev = new MutableRevisionRecord( $title );
479 $rev->setContent( SlotRecord::MAIN, $mockContent );
480 $rev->setContent( 'aux', $mockContent );
483 $rr = $renderer->getRenderedRevision( $rev );