Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312088

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

Replace WikiPage::doEdit()

Bug: T145736
Change-Id: I3b13d5f9ab31ff71aa6f6f67b6172005e665852a
---
M tests/phpunit/api/CreateNewPadFromPageTest.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherEditor 
refs/changes/88/312088/1

diff --git a/tests/phpunit/api/CreateNewPadFromPageTest.php 
b/tests/phpunit/api/CreateNewPadFromPageTest.php
index e20a848..3434556 100644
--- a/tests/phpunit/api/CreateNewPadFromPageTest.php
+++ b/tests/phpunit/api/CreateNewPadFromPageTest.php
@@ -43,7 +43,11 @@
        function testPadCreateWithText() {
                $title = Title::newFromText( $this->nameOfPad );
                $page = WikiPage::factory( $title );
-               $page->doEdit( 'Some random text that will not exist later', '' 
);
+
+               $page->doEditContent(
+                       ContentHandler::makeContent( 'Some random text that 
will not exist later', $title ),
+                       ''
+               );
                $text = $page->getContent( Revision::RAW );
 
                $pad = $this->assertWeGetPad();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b13d5f9ab31ff71aa6f6f67b6172005e665852a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EtherEditor
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>

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

Reply via email to