wiki.techinc.nl/tests/phpunit/unit/includes/resourceloader
daniel 483c1a6643 Fix access to services in unit tests.
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
2021-01-12 10:55:11 +01:00
..
ResourceLoaderFilePathTest.php
ResourceLoaderImageTest.php
VueComponentParserTest.php