Call resetServices() when setting globals in tests
authorAryeh Gregor <ayg@aryeh.name>
Mon, 26 Aug 2019 08:17:59 +0000 (11:17 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Thu, 29 Aug 2019 11:26:13 +0000 (14:26 +0300)
commit47464abb4f2f209f4c72e8af40056f508d1a70de
tree5755984d710ab7dfef5877b6bec5b9db18db86fc
parenteb4ac89d6690ed4504206de5678a9a50e5edaadf
Call resetServices() when setting globals in tests

Now that resetServices() will preserve (but reset) customized services,
it should be reasonably safe to call it every time globals are changed,
and much more effective than relying on tests to call it every time
themselves.

Depends-On: Iab8ea3a61bbc6803805d855ef23c071067646f71
Depends-On: I00e35ecea6a27468674b2a6e7d9d9eb6518e3bd5
Change-Id: Ie7a89f6ed7d52a0bc01672019ff92e7ee105a1f3
tests/phpunit/MediaWikiIntegrationTestCase.php
tests/phpunit/includes/GlobalFunctions/GlobalTest.php
tests/phpunit/includes/api/ApiOptionsTest.php
tests/phpunit/includes/api/ApiQuerySiteinfoTest.php
tests/phpunit/includes/auth/AuthManagerTest.php
tests/phpunit/includes/diff/DifferenceEngineTest.php
tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
tests/phpunit/includes/objectcache/ObjectCacheTest.php