mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-14 18:44:51 +00:00
Remove use of the Revision object returned in WikiPage::doEditContent
Bug: T254952 Change-Id: Ifbdfd9bad21209be186bc93a4a82c034a8c6a26c
This commit is contained in:
parent
6c2c6945ba
commit
a1e577c9a5
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue