Add support for External Store for unit tests
authorMatthew Flaschen <mflaschen@wikimedia.org>
Thu, 3 Mar 2016 07:30:24 +0000 (02:30 -0500)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 12 Mar 2016 00:58:32 +0000 (19:58 -0500)
commitd920237e3704faaab526aa988033416b44651ed4
tree789c3ef65dbf4882550de911a48f3faaf92ed660
parent55132619eb8386ea04502a0e599a452c86dd3362
Add support for External Store for unit tests

This allow running PHP tests with External Store DB configured.
This means it needs to do the unittest_ prefixing similar to the main
tables.

It could do resetting (truncating the tables) similar to the tablesUsed
functionality.  However, if External Store is truncated unconditionally,
revision, etc. also needs to be.  This can cause performance issues.
I was thinking of making resetting ES optional, but it wasn't needed
to pass any of the core tests, so I just left it out entirely for now.

Bug: T95870
Change-Id: If27435210d5a2165795dd759b17a7e51fe9bba10
tests/phpunit/MediaWikiTestCase.php