Make TestUser way faster
authorMarius Hoch <hoo@online.de>
Sun, 19 Oct 2014 22:22:02 +0000 (00:22 +0200)
committerMarius Hoch <hoo@online.de>
Mon, 20 Oct 2014 00:03:08 +0000 (02:03 +0200)
commitee9166a10e9d6c90a31b7ae76bd2755a2004643c
tree80809a07c9179e885e1b058467b7e0542dba3673
parent5aa4042bd20502953e98f58161d5d241e06e10e8
Make TestUser way faster

By only updating the user row in the database, if needed
and by making use of md5 for passwords instead of slower
hashing.
This cut down run time of some Wikibase API tests to 20%
of the original value for me!
Also it reduces the run time of MediaWiki's test suite
by about 45s on jenkins.

Change-Id: I7024b287a71fe9b327dbcdc5427cd8edb5047606
includes/User.php
includes/password/PasswordFactory.php
tests/phpunit/includes/TestUser.php