Unit tests should not access the ExtensionRegistry singleton. This is similar to how MediaWikiServices is disabled, but needs to be done separately because ExtensionRegistry is not a service. Make ExtensionRegistryTest use a mocked SettingsBuilder to avoid triggering the exception when SettingsBuilder tries to access the global instance of ExtensionRegistry. Inject data from ExtensionRegistry into Parsoid's SiteConfig to keep SiteConfigTest a working unit test. Change-Id: I0a04c82250582fed7a66c1e10868d9b4f3823a28 |
||
|---|---|---|
| .. | ||
| ExtensionDependencyError.php | ||
| ExtensionJsonValidationError.php | ||
| ExtensionJsonValidator.php | ||
| ExtensionProcessor.php | ||
| ExtensionRegistry.php | ||
| MissingExtensionException.php | ||
| Processor.php | ||
| VersionChecker.php | ||