<?php
use MediaWiki\MediaWikiServices;
+use MediaWiki\Revision\SlotRecord;
use MediaWiki\Storage\SqlBlobStore;
-use MediaWiki\Tests\Storage\PreMcrSchemaOverride;
+use MediaWiki\Tests\Revision\PreMcrSchemaOverride;
/**
* Test class for page archiving, using the pre-MCR schema.
$blobStore = MediaWikiServices::getInstance()->getBlobStore();
$textId = $blobStore->getTextIdFromAddress(
- $this->firstRev->getSlot( 'main' )->getAddress()
+ $this->firstRev->getSlot( SlotRecord::MAIN )->getAddress()
);
$row = (object)[ 'ar_text_id' => $textId ];
'ar_namespace' => '0',
'ar_title' => 'PageArchiveTest_thePage',
'ar_text_id' => (string)$blobStore->getTextIdFromAddress(
- $this->ipRev->getSlot( 'main' )->getAddress()
+ $this->ipRev->getSlot( SlotRecord::MAIN )->getAddress()
),
'ar_parent_id' => strval( $this->ipRev->getParentId() ),
],
'ar_namespace' => '0',
'ar_title' => 'PageArchiveTest_thePage',
'ar_text_id' => (string)$blobStore->getTextIdFromAddress(
- $this->firstRev->getSlot( 'main' )->getAddress()
+ $this->firstRev->getSlot( SlotRecord::MAIN )->getAddress()
),
'ar_parent_id' => '0',
],