diff options
author | Derick Alangi <alangiderick@gmail.com> | 2021-09-23 00:03:30 +0100 |
---|---|---|
committer | Derick Alangi <alangiderick@gmail.com> | 2021-09-23 00:31:33 +0100 |
commit | 2432cc2bb4dbaabfe84939e599e20e8a92b9e279 (patch) | |
tree | 63b2c51290f4d5288f774565b1cbdda3091e8e2e /tests/phpunit/integration/includes/page/DeletePageTest.php | |
parent | 7a545309c7a5df3a1bd7f98f2c15efb297f58eda (diff) | |
download | mediawikicore-2432cc2bb4dbaabfe84939e599e20e8a92b9e279.tar.gz mediawikicore-2432cc2bb4dbaabfe84939e599e20e8a92b9e279.zip |
Use PageUpdater's fluent interface as in some parts of our codebase
Some methods in the PageUpdater's class implements the fluent interface
design pattern. Use the fluent interface where need be.
Change-Id: If76a4b8c5070c20ed40038a4ee78e2d677de5180
Diffstat (limited to 'tests/phpunit/integration/includes/page/DeletePageTest.php')
-rw-r--r-- | tests/phpunit/integration/includes/page/DeletePageTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/integration/includes/page/DeletePageTest.php b/tests/phpunit/integration/includes/page/DeletePageTest.php index 822bd187b529..4239e12bf6a9 100644 --- a/tests/phpunit/integration/includes/page/DeletePageTest.php +++ b/tests/phpunit/integration/includes/page/DeletePageTest.php @@ -62,8 +62,8 @@ class DeletePageTest extends MediaWikiIntegrationTestCase { $content = ContentHandler::makeContent( $content, $page->getTitle(), CONTENT_MODEL_WIKITEXT ); - $updater = $page->newPageUpdater( $performer ); - $updater->setContent( 'main', $content ); + $updater = $page->newPageUpdater( $performer ) + ->setContent( 'main', $content ); $updater->saveRevision( CommentStoreComment::newUnsavedComment( "testing" ) ); if ( !$updater->wasSuccessful() ) { |