X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fpage%2FPageArchivePreMcrTest.php;h=4c955796f883dee61e6fe3e6eb1196bc8ac6c8f0;hb=8cfa62d8376bdcde687dad1837f08bac6f82f09e;hp=8d7ed61217b6b67f00833f767eef4ca471088ca7;hpb=ad83e01f61aef535f7b0451bf74277d774c52d3b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/page/PageArchivePreMcrTest.php b/tests/phpunit/includes/page/PageArchivePreMcrTest.php index 8d7ed61217..4c955796f8 100644 --- a/tests/phpunit/includes/page/PageArchivePreMcrTest.php +++ b/tests/phpunit/includes/page/PageArchivePreMcrTest.php @@ -1,4 +1,5 @@ hideDeprecated( PageArchive::class . '::getTextFromRow' ); - - /** @var SqlBlobStore $blobStore */ - $blobStore = MediaWikiServices::getInstance()->getBlobStore(); - - $textId = $blobStore->getTextIdFromAddress( - $this->firstRev->getSlot( SlotRecord::MAIN )->getAddress() - ); - - $row = (object)[ 'ar_text_id' => $textId ]; - $text = $this->archivedPage->getTextFromRow( $row ); - $this->assertSame( 'testing', $text ); - } - protected function getExpectedArchiveRows() { /** @var SqlBlobStore $blobStore */ $blobStore = MediaWikiServices::getInstance()->getBlobStore();