diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2023-08-12 19:58:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2023-08-12 19:58:14 +0000 |
commit | 591a851174e9c767a07425b99d31948d9ac41cb4 (patch) | |
tree | 5b67ab11048d089999339dd1b7d724571ad856bc /tests/phpunit/includes/user/UserTest.php | |
parent | 04b321a688b02ee153ef28f6fd6b44586c052424 (diff) | |
parent | 10e3426ccc8c84087ae404c9caf4609c49630ab7 (diff) | |
download | mediawikicore-591a851174e9c767a07425b99d31948d9ac41cb4.tar.gz mediawikicore-591a851174e9c767a07425b99d31948d9ac41cb4.zip |
Merge "Drop User::idFromName(), deprecated in 1.38"
Diffstat (limited to 'tests/phpunit/includes/user/UserTest.php')
-rw-r--r-- | tests/phpunit/includes/user/UserTest.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/phpunit/includes/user/UserTest.php b/tests/phpunit/includes/user/UserTest.php index 5f554870c38b..434a378e943d 100644 --- a/tests/phpunit/includes/user/UserTest.php +++ b/tests/phpunit/includes/user/UserTest.php @@ -1351,29 +1351,6 @@ class UserTest extends MediaWikiIntegrationTestCase { } /** - * @covers User::idFromName - */ - public function testExistingIdFromName() { - $this->hideDeprecated( 'User::idFromName' ); - $this->assertSame( - $this->user->getId(), User::idFromName( $this->user->getName() ), - 'Id is correctly retrieved from the cache.' - ); - $this->assertSame( - $this->user->getId(), User::idFromName( $this->user->getName(), User::READ_LATEST ), - 'Id is correctly retrieved from the database.' - ); - } - - /** - * @covers User::idFromName - */ - public function testNonExistingIdFromName() { - $this->hideDeprecated( 'User::idFromName' ); - $this->assertNull( User::idFromName( 'NotExisitngUser' ) ); - } - - /** * @covers User::isSystemUser */ public function testIsSystemUser() { |