private function addPagesToUpdater(array $hashList)
 {
     foreach ($hashList as $hash) {
         $this->pageUpdater->addPage(HashBuilder::newTitleFromHash($hash));
     }
 }
예제 #2
0
 /**
  * @dataProvider segmentProvider
  */
 public function testTitleRoundTrip($namespace, $title, $interwiki, $fragment)
 {
     $title = Title::makeTitle($namespace, $title, $fragment, $interwiki);
     $this->assertEquals($title, HashBuilder::newTitleFromHash(HashBuilder::getHashIdForTitle($title)));
 }