mediawiki-extensions-Cite/tests/phpunit
Adam Wight 87d1229bf2 Expose the footnote mark formatter label method
Behavior change: previously, an error would be rendered once the
custom markers run out. After this patch there is a graceful fallback
to default group rendering (eg. "lower-greek 1000").
This is a slight improvement, but is user-facing so should be
discussed before merging.

In future work we'll render custom marks programmatically so this edge
case would be unreachable, and since the error message only exists to
nudge editors to extend the custom group symbol sequence, this would
also become wasted effort.

This patch splits out a lower-level method which produces the bare
mark label, with no link or wikitext formatting.  The patch narrows
and simplifies the interface so that the method can be made available
to Parsoid, and will be converted to a service in a separate patch.

Bug: T377454
Change-Id: I719b60b46cdef0be7463d76e9125d75ab4f333ae
2024-10-30 12:14:10 +01:00
..
integration Expose the footnote mark formatter label method 2024-10-30 12:14:10 +01:00
unit Use explicit nullable type on parameter arguments (for PHP 8.4) 2024-10-26 14:56:31 +02:00
CiteCSSFileModuleTest.php Drop redundant fallbacks from parsoid-styles directory 2024-07-19 15:00:01 +02:00
CiteDbTest.php Use namespaced classes 2024-10-19 23:25:16 +02:00
CiteHooksTest.php Use namespaced classes 2024-10-19 23:25:16 +02:00
CiteIntegrationTest.php Use namespaced classes 2024-10-19 23:25:16 +02:00
ReferenceMessageLocalizerTest.php tests: Use LanguageFactory to create qqx language 2024-07-20 21:40:18 +02:00
TestUtils.php Encapsulate ref object: limited to ReferenceStack 2024-01-09 09:59:16 +01:00