<?php
use MediaWiki\User\UserIdentity;
+use MediaWiki\MediaWikiServices;
use Wikimedia\TestingAccessWrapper;
/**
$userIdentity->method( 'getName' )->willReturn( $user->getName() );
$userIdentity->method( 'getActorId' )->willReturn( 0 );
- list( $cFields, $cCallback ) = CommentStore::newKey( 'rev_comment' )
- ->insertWithTempTable( $this->db, '' );
+ list( $cFields, $cCallback ) = MediaWikiServices::getInstance()->getCommentStore()
+ ->insertWithTempTable( $this->db, 'rev_comment', '' );
$m = $this->makeMigration( MIGRATION_WRITE_BOTH );
list( $fields, $callback ) =
$m->getInsertValuesWithTempTable( $this->db, 'rev_user', $userIdentity );