Since introduction of LBFactoryTest (https://gerrit.wikimedia.org/r/#/c/96469/), phpunit tests are failing when running *all* the tests. Tests pass when running just database group.
.A database query error has occurred.
Query: SELECT user_id FROM unittest_user WHERE user_name = 'UTSysop' LIMIT 1
Function: User::idForName
Error: 1146 Table 'testclient.unittest_user' doesn't exist (localhost)
I am running with specifying the /tests/phpunit/includes directory and it fails on DifferenceEngine test on addCoreDBData in MediaWikiTestCase. Specifically, it fails on line 411:
if ( $user->idForName() == 0 ) {
If I skip DifferenceEngineTest, then tests fail on OracleInstallerTest (and if skipped, then fails on JobQueueTest)
LBFactoryTest is doing stuff with resetting the singleton, global, etc. Perhaps something is not correctly restored after test or there is another issue.
Version: unspecified
Severity: normal