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 tests: Add more use statements in namespaced classes 2024-02-18 21:31:02 +00:00
CodexModuleTest.php CodexModule: Also print dev mode warning when loading full library 2024-08-23 16:49:22 -07:00
ContextTest.php ResourceLoader: Limit injection of valid skins to names only 2024-07-23 22:07:19 +00:00
DerivativeContextTest.php tests: Namespace ResourceLoaderTestCase and friends 2024-02-16 21:32:22 +00:00
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 Codex: Allow a local development version to be used 2024-08-22 17:20:24 -07:00
MessageBlobStoreTest.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
ModuleTest.php ResourceLoader: Add missing @group ResourceLoader to various cases 2024-03-09 21:25:44 +00:00
OOUIImageModuleTest.php resourceloader: Add/change ResourceLoaderModifyEmbeddedSourceUrls hook 2024-09-27 20:28:30 +02:00
ResourceLoaderEntryPointTest.php ResourceLoader: Add missing @group ResourceLoader to various cases 2024-03-09 21:25:44 +00:00
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 ResourceLoader: Add missing @group ResourceLoader to various cases 2024-03-09 21:25:44 +00:00
WikiModuleTest.php phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00