X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FActorMigrationTest.php;h=c9387507c2ba35ee16388cb4974e9d4c45c79aea;hb=17e5334fc9bcaaf06a0d3dd591aaaafe3dfefd81;hp=d28be7a53ca2c592f03cb60e783e6e79b2bc933c;hpb=cee72ecf216e9bc4e15f25cd9e64787dbec0da1b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/ActorMigrationTest.php b/tests/phpunit/includes/ActorMigrationTest.php index d28be7a53c..c9387507c2 100644 --- a/tests/phpunit/includes/ActorMigrationTest.php +++ b/tests/phpunit/includes/ActorMigrationTest.php @@ -1,6 +1,7 @@ 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 );