MediaWikiTestCase: Fix schema restoration
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 8 Apr 2019 17:48:49 +0000 (13:48 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 8 Apr 2019 17:52:10 +0000 (13:52 -0400)
commitf552b10feaad7e99162742ff0602917aca183d3a
treee412abeadaa4ee042ccc8550ef32ac6b9657f53d
parentf9de826875126e34e4f58e17e722631876741586
MediaWikiTestCase: Fix schema restoration

First, after restoring the old schema it needs to clear the variable so
it doesn't keep "restoring" again and again for every subsequent test
class.

Second, after restoring the old schema it needs to repopulate anything
added by addCoreDBData() that was lost by dropping and recreating the
affected tables, which is easiest done by calling $this->resetDB().

Change-Id: I549d10eb7ceec117d3a0138449ca01f8065707d4
tests/phpunit/MediaWikiTestCase.php