wiki.techinc.nl/tests/phpunit/integration/includes
Tim Starling 16979ecf29 Fix pollution of LinkBatch/LinkCache with interwiki link
* In LinkBatch::addObj(), reject interwiki links with a warning.
  Otherwise the link is added to the batch by ns/title and later
  reconstructed as if it were a local link without an interwiki
  prefix.
* In CommentParser, treat interwiki links as always good, don't defer
  the existence check.
* In LinkBatch, inject a LoggerInstance instead of calling LoggerFactory
  in four places.
* Add a regression test, and some general tests for known links.

Bug: T300311
Change-Id: I0e5825eb48a6ba2932aea69a4d0fff3439c50ff5
2022-01-28 10:52:38 +11:00
..
block tests: Use service container in integration tests cases 2021-09-05 22:14:36 +01:00
cache HtmlCacheUpdater: replace Title in method signatures. 2021-04-16 11:04:26 +00:00
CommentFormatter Fix pollution of LinkBatch/LinkCache with interwiki link 2022-01-28 10:52:38 +11:00
db rdbms: Remove IDatabase::numFields() method 2021-12-21 23:10:49 +00:00
diff
editpage/Constraint build: Updating dependencies 2021-07-22 03:36:05 +00:00
export Fix PHP 8.0 failure of WikiExporterFactoryTest 2022-01-21 15:20:57 +11:00
filerepo filerepo: remove repo name from getSharedCacheKey() 2020-11-16 17:28:31 -08:00
htmlform HTMLTitleTextField: Remove B&C code 2021-09-22 00:48:59 -07:00
language phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
libs/rdbms/resultwrapper Make IResultWrapper::seek() throw an exception 2021-08-02 11:37:45 +10:00
logging Convert LogPage to UserIdentity 2021-03-23 12:02:40 -06:00
page phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
parser Move Content::getParserOutput & AbstractContent::fillParserOutput to ContentHandler 2021-09-29 13:10:51 +03:00
Permissions RestrictionStoreTest: Don't access services in data providers 2021-12-08 15:54:13 +01:00
poolcounter phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
Rest/Handler UpdateHandlerTest: Don't access MW services in dataProvider 2021-12-08 15:54:13 +01:00
revisionlist tests: Use service container in integration tests cases 2021-09-05 22:14:36 +01:00
Storage Inject MainConfig into actions 2022-01-12 22:30:31 +01:00
user UserSelectQueryBuilderTest: Test behavior of hidden() 2021-12-20 15:59:15 +01:00
utils Use the unserialized form of image metadata internally 2021-06-08 17:04:01 +10:00
watchlist build: Updating dependencies 2021-07-22 03:36:05 +00:00
SanitizerValidateEmailTest.php Cleanup some tests to reduce code duplications 2020-12-21 10:08:29 +00:00
StubGlobalUserTest.php Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
StubObjectTest.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
TemplateParserIntegrationTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00