X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FActorMigrationTest.php;h=c9387507c2ba35ee16388cb4974e9d4c45c79aea;hp=d28be7a53ca2c592f03cb60e783e6e79b2bc933c;hb=733704ed8248f71dfb982d22799104a976d1ada4;hpb=8477d4a6f5949fcb875fb0d21800866bc548fc05 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 );