Don't use deprecated User::checkPassword() in TestUser
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 18 May 2016 16:54:18 +0000 (12:54 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 18 May 2016 16:57:05 +0000 (12:57 -0400)
commit1e25fb4e42c18089887f985adc9e86fe3ac3ba27
tree3cf9b3997aac2cf2f756d2593ef089944b6d00cc
parent7e7b5c181dd8dd6ee9a59965b6ff91a8cdbf164f
Don't use deprecated User::checkPassword() in TestUser

I423f09f added this call in an attempt to speed things up. However,
User::checkPassword() was deprecated in I2c736ad7, and the call causes
some tests to fail when $wgDisableAuthManager is false.

Since this is trying to determine whether the user_password column in
the user table needs updating for the unit test, let's test that
directly instead of the much-more-complicated User::checkPassword().

Change-Id: I410de706f9074edea3f3988769a3e99231d8dca3
tests/phpunit/includes/TestUser.php