diff options
Diffstat (limited to 'tests/phpunit')
-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() { |