Improve TestUser group handling
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 Dec 2013 17:41:24 +0000 (12:41 -0500)
committerHashar <hashar@free.fr>
Sat, 4 Jan 2014 19:58:25 +0000 (19:58 +0000)
commita219c69cd31db8f90adb8de44d3f06636fe557a2
treefa3b23d25c79897140a070fafd96d273fc92cf2a
parentea68eb36f24767bcbbf0eba2f6998764b9892f7c
Improve TestUser group handling

There's no need for TestUser to remove all groups only to add some back
on. We should be able to speed things up (see bug 43762) by only
removing the groups that aren't wanted and only adding the ones that
aren't already possessed.

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