PHPUnit tests that are not based on MediaWikiIntegrationTestCase must not access the global service container. This patch fixes two instances: * GlobalIdGeneratorTest was tsting the getTimestampFromUUIDv1 via the legacy static method in UIDGenerator. Changed to test the GlobalIdGenerator method directly. Tests for the deprecated static methods should be separate, if needed at all. * DerivativeResourceLoaderContextTest does not reside under the "unit" directory for strict unit tests, but was not based on MediaWikiIntegrationTestCase, even though ResourceLoader logic heavily relies on the global service container instance. Fixed by deriving the test class from MediaWikiIntegrationTestCase. Change-Id: I40b8364edc5bd88d60e62b0cd0fa51c6ae9d2298 |
||
|---|---|---|
| .. | ||
| ResourceLoaderFilePathTest.php | ||
| ResourceLoaderImageTest.php | ||
| VueComponentParserTest.php | ||