resourceloader: Document which FileModule methods use a DB
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 19 Jun 2019 22:44:39 +0000 (23:44 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 19 Jun 2019 22:44:39 +0000 (23:44 +0100)
commita72b082811ac1f5b3a61371501828a53f6f0b145
tree32528b1ad63d6ce493594b197558d93d8e41ba06
parent469d961bb74931ef10c9b6d1edc3590c0f214b5d
resourceloader: Document which FileModule methods use a DB

Also, for the unit test, disable the two methods we use there
that can get called. The unintended side-effects of these two
methods was the only reason it used `@group Database`.
Removing that makes the test a bit faster as well.

Enforce this via MediaWikiServices for this suite to avoid an
untracked dependency slipping back in in the future.

Bug: T225730
Change-Id: I6c54466e9517d9899bc39f8f9bb946369c0a526d
includes/resourceloader/ResourceLoaderFileModule.php
tests/phpunit/ResourceLoaderTestCase.php
tests/phpunit/includes/resourceloader/ResourceLoaderFileModuleTest.php