Disallow overriding services that were set
authorAryeh Gregor <ayg@aryeh.name>
Mon, 6 Aug 2018 16:01:31 +0000 (19:01 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Tue, 2 Oct 2018 14:41:03 +0000 (17:41 +0300)
commitc70c2e4714ac5186b69319dafd0ace3a0d2d00ab
tree1b96b20c7d282f0c80b5380ab754d3147e6514bd
parent1a28e36f48807b6910c87606d38cfd5e9c3c77b6
Disallow overriding services that were set

Otherwise setService() calls (including indirect, like via
setContentLang() ) will be silently overridden.  This bit me several
times already while working on tests.  If someone actually wants to do
this, they should probably split their test in two, because it evidently
has two separate phases that they're testing (with/without services
set).

Depends-On: I9acb81c0de95eb5a6bed543d757ae62523ea6041
Change-Id: I8c60e37c179320e61684cbc11281c509e525e8fb
tests/phpunit/MediaWikiTestCase.php