wiki.techinc.nl/tests/phpunit/includes
Subramanya Sastry c8d0470f4b Make ParsoidOutputAccess a wrapper over ParserOutputAccess
* Updated ParserOutput to set Parsoid render ids that REST API
  functionality expects in ParserOutput objects.
* CacheThresholdTime functionality no longer exists since it was
  implemented in ParsoidOutputAccess and ParserOutputAccess doesn't
  support it. This is tracked in T346765.
* Enforce the constraint that uncacheable parses are only for fake or
  mutable revisions. Updated tests that violated this constraint to
  use 'getParseOutput' instead of calling the parse method directly.
* Had to make some changes in ParsoidParser around use of preferredVariant
  passed to Parsoid. I also left some TODO comments for future fixes.
  T267067 is also relevant here.

PARSOID-SPECIFIC OPTIONS:
* logLinterData: linter data is always logged by default -- removed
  support to disable it. Linter extension handles stale lints properly
  and it is better to let it handle it rather than add special cases
  to the API.
* offsetType: Moved this support to ParsoidHandler as a post-processing
  of byte-offset output. This eliminates the need to support this
  Parsoid-specific options in the ContentHandler hierarchies.
* body_only / wrapSections: Handled this in HtmlOutputRendererHelper
  as a post-processing of regular output by removing sections and
  returning the body content only. This does result in some useless
  section-wrapping work with Parsoid, but the simplification is probably
  worth it. If in the future, we support Parsoid-specific options in
  the ContentHandler hierarchy, we could re-introduce this. But, in any
  case, this "fragment" flavor options is likely to get moved out of
  core into the VisualEditor extension code.

DEPLOYMENT:
* This patch changes the cache key by setting the useParsoid option
  in ParserOptions. The parent patch handles this to ensure we don't
  encounter a cold cache on deploy.

TESTS:
* Updated tests and mocks to reflect new reality.
* Do we need any new tests?

Bug: T332931
Change-Id: Ic9b7cc0fcf365e772b7d080d76a065e3fd585f80
2023-10-13 15:03:03 -05:00
..
actions Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
api Improve the readability of test code by making the BlockActionInfo::ACTION_* constants public+internal 2023-10-12 10:17:19 +11:00
auth Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
block Merge "Add CompositeBlock::createFromBlocks" 2023-10-13 00:23:36 +00:00
cache Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Category Hard-deprecate ParserOutput::getCategories(), deprecated in 1.40 2023-09-29 15:25:50 -04:00
changes Drop RecentChange::getPerformer(), deprecated since 1.36 2023-09-27 22:41:21 +00:00
changetags tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
collation
CommentStore tests: Migrate more cases to SQB 2023-09-21 18:30:37 +00:00
composer tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
config Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
content Move Article::getRedirectHeaderHtml() to LinkRenderer::makeRedirectHeader() 2023-09-22 17:08:17 -04:00
db rdbms: Introduce concept of virtual domains and mapping to ext cluster 2023-10-05 13:31:15 +02:00
debug debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
deferred tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
diff diffs: add line number headings to inline diffs 2023-10-09 22:53:14 -04:00
editpage tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
exception Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
export tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
ExternalLinks LinkFilter::makeIndexes: Don't explode if the 'host' key is missing for news:// 2023-10-10 09:55:19 -04:00
externalstore Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00
filebackend Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
filerepo Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
GlobalFunctions Follow RFC 3986 on what is path in mailto URLs 2023-09-04 05:48:23 +00:00
HookContainer
Html tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
htmlform Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
http http: MultiHttpClient supports TelemetryHeadersInterface 2023-09-12 18:05:17 +02:00
import Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
installer
interwiki tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
jobqueue Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
language Support message parameters on the uselang=x-xss feature 2023-09-28 15:33:00 +00:00
languages Add tests for date formatting in Walloon (wa) 2023-08-04 16:45:32 +02:00
libs Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
linkeddata Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
linker Merge "tests: Migrate away from LoadBalancer::getConnection" 2023-09-27 11:16:01 +00:00
logging Use IReadableDatabase over IDatabase in DatabaseLogEntry::newFromId 2023-10-11 00:25:45 +01:00
mail Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
media Make ExifRotationTest dramatically faster 2023-09-12 09:47:16 +02:00
Message
Navigation
objectcache Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
Output ParserOutput::hasTOCHTML(): Remove old back-compat code 2023-10-12 15:36:31 -04:00
page ParserOutputAccess: fix the wrapper div fetched from the fallback cache 2023-10-06 16:49:52 -04:00
pager Switch to ICP in some easy cases 2023-09-26 21:05:16 +02:00
ParamValidator/TypeDef Namespace TitleValue under \MediaWiki\Title 2023-09-18 18:24:39 +01:00
parser Remove implicit setter for ParserOutput::mTOCHTML 2023-10-04 15:10:58 -04:00
password Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
Permissions Improve the readability of test code by making the BlockActionInfo::ACTION_* constants public+internal 2023-10-12 10:17:19 +11:00
poolcounter Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
preferences Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
profiler
rcfeed Namespace remaining 'specialpage' files under \MediaWiki\SpecialPage 2023-09-18 18:23:13 +01:00
registration Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Request tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
ResourceLoader ResourceLoader: Improve and generalize validateScriptFile test coverage 2023-10-02 18:46:25 -07:00
Rest
Revision Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
search Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
session tests: Use $this->getDb() instead of wfGetDB() in integration tests 2023-09-25 21:08:09 +02:00
shell Make Shell::makeScriptCommand use run.php 2023-07-25 01:35:59 +00:00
site site: Migrate DBSiteStore to use ICP 2023-08-24 13:34:35 +02:00
SiteStats Convert numerous DB queries to use QueryBuilders 2023-10-09 19:06:53 +02:00
skins Namespace TitleValue under \MediaWiki\Title 2023-09-18 18:24:39 +01:00
sparql Reorg: Move Status to MediaWiki\Status\ 2023-08-25 15:44:17 +02:00
specialpage Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
specials Make use of assertStatusGood/Error and such in tests 2023-10-04 17:16:00 +00:00
Status Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
Storage Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
title tests: Migrate more cases to SQB 2023-09-21 18:30:37 +00:00
upload Merge "UploadBaseTest: Add const for path used for test uploads" 2023-08-08 00:58:38 +00:00
user Remove Block cache from User 2023-10-12 13:42:58 +11:00
utils Merge "tests: Move test cases from /includes/ into sub folder" 2023-09-15 01:22:10 +00:00
watcheditem Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
WikiMap tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
xml tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
AutoLoaderTest.php
HooksTest.php Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
MediaWikiServicesTest.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
MediaWikiTest.php Namespace remaining Title-related classes under \MediaWiki\Title 2023-09-19 05:21:23 +00:00
MockServiceWiring.php
SampleTest.php
TestUser.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
TestUserRegistry.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00