wiki.techinc.nl/tests/phpunit/includes/search
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
..
ParserOutputSearchDataExtractorTest.php
PrefixSearchTest.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SearchEnginePrefixTest.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SearchEngineTest.php Add namespace to WikitextContent 2024-08-06 17:42:51 +03:30
SearchHighlighterTest.php
SearchNearMatchResultSetTest.php
SearchResultSetTest.php search: Replace IResultWrapper::fetchObject()/next() with foreach loop 2024-08-31 23:58:02 +02:00
SearchResultThumbnailProviderTest.php Use explicit nullable type on parameter arguments 2024-10-16 20:58:33 +02:00
SearchResultTraitTest.php
TitleMatcherTest.php phpunit: Remove superfluous Title::clearCaches() calls 2025-05-27 12:37:31 +00:00