Improve MediaWikiIntegrationTestCase::resetDB()
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Thu, 12 Sep 2019 15:36:01 +0000 (17:36 +0200)
committerAdam Wight <adam.wight@wikimedia.de>
Fri, 13 Sep 2019 11:01:41 +0000 (13:01 +0200)
commit74fbb2c5c4b0a44929eabe483487fa6617b150b0
treecc8f6f00cbd72b57224d885c75d4226decaa1579
parent1af7f36b4f8fcf626b05808e131fd64fcfce8b54
Improve MediaWikiIntegrationTestCase::resetDB()

Test the intersection of $tablesUsed with each set of tables
separately and only update it afterwards.  Without this fix, overlaps
between the table groups would cause additional groups to be pulled in
unnecessarily.

Change-Id: I1b2a6eb47e061dee8a27fb4779809b4684c05104
tests/phpunit/MediaWikiIntegrationTestCase.php