Don't create user in AuthManagerTest dataProvider
authoraude <aude.wiki@gmail.com>
Sat, 18 Mar 2017 18:26:25 +0000 (14:26 -0400)
committeraude <aude.wiki@gmail.com>
Sat, 18 Mar 2017 19:45:04 +0000 (15:45 -0400)
commitc228fa25431d322792e7d171d0c535b8d4389a54
tree7a354a7f5bd62df2e2c885d8bf62fd11d47a713d
parent5a35503625da1c323ad85d7a39811074a03b9424
Don't create user in AuthManagerTest dataProvider

Creating users involves database access and the test
database isn't fully setup yet when data providers run.

In this particular test / data provider, all that is needed
is the user name so we can just set that w/o creating
the user in the data provider. The user gets created during
the test. (after the test database is setup)

also $id set in $id = $user->getId() was unused and was the
specific code that involved making a database connection.

Change-Id: I1685dfdd6cfc60cd2c59a4d9de95bcbbaba5e153
tests/phpunit/includes/auth/AuthManagerTest.php