<?php
+use MediaWiki\MediaWikiServices;
use MediaWiki\Storage\BlobStoreFactory;
use MediaWiki\Storage\MutableRevisionRecord;
use MediaWiki\Storage\RevisionAccessException;
* @covers \MediaWiki\Storage\RevisionStore::newMutableRevisionFromArray
*/
public function testConstructFromArrayWithBadPageId() {
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$rev = new Revision( [ 'page' => 77777777 ] );
$this->assertSame( 77777777, $rev->getPage() );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
}
public function provideConstructFromArray_userSetAsExpected() {
public function testConstructFromRowWithBadPageId() {
$this->setMwGlobals( 'wgCommentTableSchemaMigrationStage', MIGRATION_OLD );
$this->overrideMwServices();
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$rev = new Revision( (object)[ 'rev_page' => 77777777 ] );
$this->assertSame( 77777777, $rev->getPage() );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
}
public function provideGetRevisionText() {
$cache = $this->getWANObjectCache();
- $blobStore = new RevisionStore( $lb, $this->getBlobStore(), $cache );
+ $blobStore = new RevisionStore(
+ $lb,
+ $this->getBlobStore(),
+ $cache,
+ MediaWikiServices::getInstance()->getCommentStore()
+ );
return $blobStore;
}