X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTestUser.php;h=952a662fcd25ab41ec42fc2d8f49eba5223943de;hp=86f4ae789d53960d43ad0aa782a6111647e69635;hb=fb73286fba73c399e119ef50ff036255dd6a1096;hpb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9 diff --git a/tests/phpunit/includes/TestUser.php b/tests/phpunit/includes/TestUser.php index 86f4ae789d..952a662fcd 100644 --- a/tests/phpunit/includes/TestUser.php +++ b/tests/phpunit/includes/TestUser.php @@ -1,5 +1,7 @@ init( RequestContext::getMain()->getConfig() ); + $passwordFactory = MediaWikiServices::getInstance()->getPasswordFactory(); if ( !$passwordFactory->newFromCiphertext( $row->user_password )->equals( $password ) ) { $passwordHash = $passwordFactory->newFromPlaintext( $password ); $dbw->update(