wiki.techinc.nl/tests/phpunit/includes/ResourceLoader
Máté Szabó 8e14ff1bc0 phpunit: Remove superfluous Title::clearCaches() calls
Why:

- Various tests have been calling Title::clearCaches() on an ad-hoc
  basis at the end of test methods, or in tearDown(), to work around
  stale Title instances persisting across tests in Title's internal
  caches.
- MediaWikiIntegrationTestCase takes care of this since
  Ie6cac7e1282f794277dfc8ff3673f12e9969818c, making these calls
  unnecessary.

What:

- Remove now-redundant Title::clearCaches() calls from tearDown()
  overrides and the end of test methods.
- Preserve in-test Title::clearCaches() calls that are likely
  intended to force internal caches to reflect changes happening
  within the test itself.

Bug: T395214
Change-Id: Ib5d42389cef20f3839c7f7a80041d002f0f09449
(cherry picked from commit 6483181044496c339ad497cc885319b20de7f6e7)
2025-05-27 12:37:31 +00:00
..
templates
ClientHtmlTest.php
CodexModuleTest.php
ContextTest.php
DerivativeContextTest.php
FileModuleTest.php ResourceLoader: Test DependencyStore with indirect styles dependencies 2024-09-09 18:07:35 +00:00
ImageModuleTest.php resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook 2024-09-27 20:28:30 +02:00
LessVarFileModuleTest.php
MessageBlobStoreTest.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
ModuleTest.php
OOUIImageModuleTest.php resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook 2024-09-27 20:28:30 +02:00
ResourceLoaderEntryPointTest.php
ResourceLoaderTest.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SkinModuleTest.php ResourceLoader: Fix content-links compat 2024-09-17 03:22:14 +00:00
StartUpModuleTest.php resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook 2024-09-27 20:28:30 +02:00
UserOptionsModuleTest.php
WikiModuleTest.php phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00