Add two new hooks to fix broken CentralAuth unit tests
authorMax Semenik <maxsem.wiki@gmail.com>
Thu, 29 Jun 2017 00:14:18 +0000 (17:14 -0700)
committerKaldari <rkaldari@wikimedia.org>
Wed, 5 Jul 2017 17:18:27 +0000 (10:18 -0700)
commit9374590feac2e1c78565b790681e9afb966393c6
treed745c0999e0d92142f5638d0d6307f200f97c78a
parent2ad6c070b8c4df374ea1a884e34f6a4e8aa9c666
Add two new hooks to fix broken CentralAuth unit tests

* UnitTestsAfterDatabaseSetup
* UnitTestsBeforeDatabaseTeardown
Bug T168802 necessitates that CentralAuth creates its tables
before any user tests are run, due to its extensive hooking
into everything. This change adds two hooks for that, called
after DB initialization is done and before teardown begins. The
corresponding CentralAuth change is
at I618840fafd22d9b6471eb470ef0414e354aa17f5

Bug: T168802
Change-Id: If7050513719833d4167a24283885d7c10a25856b
docs/hooks.txt
tests/phpunit/MediaWikiTestCase.php