Reedy has uploaded a new change for review.

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

Change subject: Remove WikiPage::doEdit() call
......................................................................

Remove WikiPage::doEdit() call

Bug: T145736
Change-Id: I5616554ff6752eb80e8513d29483d0f1e474a37f
---
M tests/System/SubPageList/PageCreator.php
1 file changed, 4 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SubPageList 
refs/changes/90/312090/1

diff --git a/tests/System/SubPageList/PageCreator.php 
b/tests/System/SubPageList/PageCreator.php
index e6eb27a..e22d453 100644
--- a/tests/System/SubPageList/PageCreator.php
+++ b/tests/System/SubPageList/PageCreator.php
@@ -12,15 +12,10 @@
                $pageContent = 'Content of ' . $title->getFullText();
                $editMessage = 'SPL system test: create page';
 
-               if ( class_exists( 'WikitextContent' ) ) {
-                       $page->doEditContent(
-                               new \WikitextContent( $pageContent ),
-                               $editMessage
-                       );
-               }
-               else {
-                       $page->doEdit( $pageContent, $editMessage );
-               }
+               $page->doEditContent(
+                       new \WikitextContent( $pageContent ),
+                       $editMessage
+               );
        }
 
 }
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5616554ff6752eb80e8513d29483d0f1e474a37f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SubPageList
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