diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2022-04-14 19:12:27 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2022-04-14 21:42:55 +0000 |
commit | e3a741661aa1670a124825f16a5bd84e53a70693 (patch) | |
tree | eb093f9702c771e8a30f1ab6705d2d40ae823cc6 /tests/phpunit | |
parent | fe58a16796e0d6d923e876c735459718a814d9db (diff) | |
download | mediawikicore-e3a741661aa1670a124825f16a5bd84e53a70693.tar.gz mediawikicore-e3a741661aa1670a124825f16a5bd84e53a70693.zip |
Remove usage of protection related deprecated Title function
Bug: T306131
Change-Id: I487a12a88ae82c367d1cbb2e52083fe20b27d4ce
Diffstat (limited to 'tests/phpunit')
-rw-r--r-- | tests/phpunit/includes/api/ApiProtectTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiProtectTest.php b/tests/phpunit/includes/api/ApiProtectTest.php index 02d91b47fe2e..de7cf64249a5 100644 --- a/tests/phpunit/includes/api/ApiProtectTest.php +++ b/tests/phpunit/includes/api/ApiProtectTest.php @@ -43,7 +43,7 @@ class ApiProtectTest extends ApiTestCase { $this->assertArrayHasKey( 'protect', $apiResult ); $this->assertSame( $name, $apiResult['protect']['title'] ); - $this->assertTrue( $title->isProtected( 'edit' ) ); + $this->assertTrue( $this->getServiceContainer()->getRestrictionStore()->isProtected( $title, 'edit' ) ); $this->assertTrue( $this->getServiceContainer()->getWatchlistManager()->isTempWatched( $this->getTestSysop()->getUser(), $title |