jenkins-bot has submitted this change and it was merged.

Change subject: Replace WikiPage::doEdit() usage
......................................................................


Replace WikiPage::doEdit() usage

Bug: T145743
Change-Id: I2428a7b043c33fb2121fe198d46dc2b9836a5ecc
---
M repo/tests/phpunit/includes/Store/Sql/WikiPageEntityRedirectLookupTest.php
1 file changed, 8 insertions(+), 1 deletion(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git 
a/repo/tests/phpunit/includes/Store/Sql/WikiPageEntityRedirectLookupTest.php 
b/repo/tests/phpunit/includes/Store/Sql/WikiPageEntityRedirectLookupTest.php
index 00022f9..b90d018 100644
--- a/repo/tests/phpunit/includes/Store/Sql/WikiPageEntityRedirectLookupTest.php
+++ b/repo/tests/phpunit/includes/Store/Sql/WikiPageEntityRedirectLookupTest.php
@@ -2,6 +2,7 @@
 
 namespace Wikibase\Repo\Tests\Store\Sql;
 
+use ContentHandler;
 use DatabaseMysql;
 use LoadBalancer;
 use MediaWikiTestCase;
@@ -84,7 +85,13 @@
                $wikiText = '#REDIRECT [[' . $title->getFullText() . ']]';
 
                $page = WikiPage::factory( Title::newFromText( 
'Help:WikiPageEntityMetaDataLookupTest' ) );
-               $page->doEdit( $wikiText, 'test', 0, false, $wgUser );
+               $page->doEditContent(
+                       ContentHandler::makeContent( $wikiText, 
$page->getTitle() ),
+                       'test',
+                       0,
+                       false,
+                       $wgUser
+               );
        }
 
        public function testGetRedirectForEntityId() {

-- 
To view, visit https://gerrit.wikimedia.org/r/310957
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2428a7b043c33fb2121fe198d46dc2b9836a5ecc
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: Aude <aude.w...@gmail.com>
Gerrit-Reviewer: Hoo man <h...@online.de>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to