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