diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2022-09-01 23:18:41 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2022-09-02 19:34:02 +0000 |
commit | 6555923b08bc27c3b0ead53c2c7e12a3aa6bd926 (patch) | |
tree | 90cde851bce234a21b743c75c0090a992a4fadbf /tests/phpunit/includes/cache/BacklinkCacheTest.php | |
parent | 950331714bf9cf1cbfc67deff36a8aaf89399b43 (diff) | |
download | mediawikicore-6555923b08bc27c3b0ead53c2c7e12a3aa6bd926.tar.gz mediawikicore-6555923b08bc27c3b0ead53c2c7e12a3aa6bd926.zip |
tests: Replace deprecated WikiPage::factory
Bug: T297688
Change-Id: Ic84d491c5603f3590e26cb56a305508b2b0ca109
Diffstat (limited to 'tests/phpunit/includes/cache/BacklinkCacheTest.php')
-rw-r--r-- | tests/phpunit/includes/cache/BacklinkCacheTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/cache/BacklinkCacheTest.php b/tests/phpunit/includes/cache/BacklinkCacheTest.php index e12101acd8a6..0f5da842001a 100644 --- a/tests/phpunit/includes/cache/BacklinkCacheTest.php +++ b/tests/phpunit/includes/cache/BacklinkCacheTest.php @@ -21,7 +21,7 @@ class BacklinkCacheTest extends MediaWikiIntegrationTestCase { $this->insertPage( 'BacklinkCacheTest_5', '[[BacklinkCacheTest_1]]' ); $cascade = 1; - WikiPage::factory( self::$backlinkCacheTest['title'] )->doUpdateRestrictions( + $this->getServiceContainer()->getWikiPageFactory()->newFromTitle( self::$backlinkCacheTest['title'] )->doUpdateRestrictions( [ 'edit' => 'sysop' ], [], $cascade, |