/**
  * @return SiteLinkChangeOpFactory
  */
 private function getSiteLinkChangeOpFactory()
 {
     return $this->changeOpFactoryProvider->getSiteLinkChangeOpFactory();
 }
 /**
  * @param MergeItems $module
  * @param EntityRedirect|null $expectedRedirect
  */
 private function overrideServices(MergeItems $module, EntityRedirect $expectedRedirect = null)
 {
     $idParser = new BasicEntityIdParser();
     $wikibaseRepo = WikibaseRepo::getDefaultInstance();
     $errorReporter = new ApiErrorReporter($module, $wikibaseRepo->getExceptionLocalizer(), Language::factory('en'));
     $mockContext = $this->getMock('RequestContext');
     $apiHelperFactory = $wikibaseRepo->getApiHelperFactory($mockContext);
     $resultBuilder = $apiHelperFactory->getResultBuilder($module);
     $changeOpsFactoryProvider = new ChangeOpFactoryProvider($this->getConstraintProvider(), new GuidGenerator(), $wikibaseRepo->getStatementGuidValidator(), $wikibaseRepo->getStatementGuidParser(), $this->getSnakValidator(), $this->getTermValidatorFactory(), new MockSiteStore(TestSites::getSites()));
     $module->setServices($idParser, $errorReporter, $resultBuilder, new ItemMergeInteractor($changeOpsFactoryProvider->getMergeChangeOpFactory(), $this->mockRepository, $this->mockRepository, $this->getPermissionCheckers(), $wikibaseRepo->getSummaryFormatter(), $module->getUser(), $this->getMockRedirectCreationInteractor($expectedRedirect)));
 }