diff --git a/tests/phpunit/includes/Storage/PageUpdaterTest.php b/tests/phpunit/includes/Storage/PageUpdaterTest.php index e6ad011524a..2805ea88f9a 100644 --- a/tests/phpunit/includes/Storage/PageUpdaterTest.php +++ b/tests/phpunit/includes/Storage/PageUpdaterTest.php @@ -523,6 +523,20 @@ class PageUpdaterTest extends MediaWikiTestCase { return $rev->getTimestamp(); } ]; + + yield 'subst:REVISIONUSER' => [ + 'Test {{subst:REVISIONUSER}} Test', + function ( RevisionRecord $rev ) { + return $rev->getUser()->getName(); + } + ]; + + yield 'subst:PAGENAME' => [ + 'Test {{subst:PAGENAME}} Test', + function ( RevisionRecord $rev ) { + return 'PageUpdaterTest::testMagicWords'; + } + ]; } /**