Remove use of the Revision object returned in WikiPage::doEditContent

Bug: T254952
Change-Id: Ifbdfd9bad21209be186bc93a4a82c034a8c6a26c
This commit is contained in:
DannyS712 2020-06-10 00:30:47 +00:00
parent 6c2c6945ba
commit a1e577c9a5

View file

@ -1,5 +1,6 @@
<?php
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Revision\SlotRecord;
/**
@ -48,9 +49,9 @@ class ApiCoreThankIntegrationTest extends ApiTestCase {
$result = $this->editPage( $pageName, $content, 'Summary', NS_MAIN, $user );
/** @var Status $result */
$result = $result->getValue();
/** @var Revision $revision */
$revision = $result['revision'];
$this->revId = $revision->getId();
/** @var RevisionRecord $revisionRecord */
$revisionRecord = $result['revision-record'];
$this->revId = $revisionRecord->getId();
// Create a 2nd page and delete it, so we can thank for the log entry.
$pageToDeleteTitle = Title::newFromText( 'Page to delete' );