Certain globals, such as $wgObjectCaches, $wgMainCacheType and $wgJobTypeConf cannot be properly set using setMwGlobals. The actual global value is changed, but because makeTestConfig creates a configuration that defines these configuration settings, the actual global value isn't picked up.
This causes tests that change a cache by calling $this->setMwGlobals( 'wgMainCacheType', 'hash' ); to stop working once the cache uses the service locator.
Affected change: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/566083 (T243233: MediaWiki should provide a LocalClusterObjectCache service)