diff options
author | Ebrahim Byagowi <ebrahim@gnu.org> | 2024-05-19 22:03:58 +0330 |
---|---|---|
committer | Ebrahim Byagowi <ebrahim@gnu.org> | 2024-05-19 23:23:01 +0330 |
commit | 97d12027843c7a44c53ae09acd785ecee914cde5 (patch) | |
tree | a48ddafd324628a1c7576e0d5de7e228d0211701 /tests/phpunit/includes/page | |
parent | 36eef7f7d4102931120bffa254527889b130562a (diff) | |
download | mediawikicore-97d12027843c7a44c53ae09acd785ecee914cde5.tar.gz mediawikicore-97d12027843c7a44c53ae09acd785ecee914cde5.zip |
Add namespace and deprecation alias to TextContent
This patch introduces a namespace declaration for the
MediaWiki\Content to TextContent and establishes a class
alias marked as deprecated since version 1.43.
Bug: T353458
Change-Id: Ic251b1ddfcf6db9c85cb54cddf912aa827d2bc3a
Diffstat (limited to 'tests/phpunit/includes/page')
-rw-r--r-- | tests/phpunit/includes/page/PageArchiveTest.php | 1 | ||||
-rw-r--r-- | tests/phpunit/includes/page/WikiPageDbTest.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/phpunit/includes/page/PageArchiveTest.php b/tests/phpunit/includes/page/PageArchiveTest.php index 65f443e930f5..11fefe6ca7bf 100644 --- a/tests/phpunit/includes/page/PageArchiveTest.php +++ b/tests/phpunit/includes/page/PageArchiveTest.php @@ -1,6 +1,7 @@ <?php use MediaWiki\CommentStore\CommentStoreComment; +use MediaWiki\Content\TextContent; use MediaWiki\Revision\MutableRevisionRecord; use MediaWiki\Revision\RevisionRecord; use MediaWiki\Revision\SlotRecord; diff --git a/tests/phpunit/includes/page/WikiPageDbTest.php b/tests/phpunit/includes/page/WikiPageDbTest.php index b12bc4b185c5..40262f102acb 100644 --- a/tests/phpunit/includes/page/WikiPageDbTest.php +++ b/tests/phpunit/includes/page/WikiPageDbTest.php @@ -3,6 +3,7 @@ use MediaWiki\Category\Category; use MediaWiki\CommentStore\CommentStoreComment; use MediaWiki\Content\Renderer\ContentRenderer; +use MediaWiki\Content\TextContent; use MediaWiki\Deferred\SiteStatsUpdate; use MediaWiki\Edit\PreparedEdit; use MediaWiki\MainConfigNames; |