use ActorMigration;
use CommentStore;
-use MediaWiki\Logger\Spi as LoggerSpi;
use MediaWiki\Revision\RevisionStore;
use MediaWiki\Revision\RevisionStoreFactory;
use MediaWiki\Revision\SlotRoleRegistry;
$this->getMockCommentStore(),
ActorMigration::newMigration(),
MIGRATION_OLD,
- $this->getMockLoggerSpi(),
+ new NullLogger(),
true
);
$this->assertTrue( true );
$cache = $this->getHashWANObjectCache();
$commentStore = $this->getMockCommentStore();
$actorMigration = ActorMigration::newMigration();
- $loggerProvider = $this->getMockLoggerSpi();
+ $logger = new NullLogger();
$factory = new RevisionStoreFactory(
$lbFactory,
$commentStore,
$actorMigration,
$mcrMigrationStage,
- $loggerProvider,
+ $logger,
$contentHandlerUseDb
);
return new WANObjectCache( [ 'cache' => new \HashBagOStuff() ] );
}
- /**
- * @return \PHPUnit_Framework_MockObject_MockObject|LoggerSpi
- */
- private function getMockLoggerSpi() {
- $mock = $this->getMock( LoggerSpi::class );
-
- $mock->method( 'getLogger' )
- ->willReturn( new NullLogger() );
-
- return $mock;
- }
-
}