mediawiki-extensions-Cite/tests/phpunit
thiemowmde 858fdcefd9 Split off separate key normalization function
This patch does two things:

1. The "normalization" function was never only doing normalization,
but also all the necessary HTML encoding. This is now more visible
and split into two separate functions.

2. To make this easier we change the order slightly. Because of this
the normalization step must now consider spaces. Before spaces have
been converted to underscores by escapeIdForLink.

The results are all the exact same as before.

This is split from I5a64ac4 to make that easier to review.

Bug: T298278
Change-Id: I9435a2ddaa21559e29587c58b7523103141467f7
2023-11-30 09:43:35 +01:00
..
integration Split off separate key normalization function 2023-11-30 09:43:35 +01:00
unit Update tests for PHPUnit 9.6 2023-11-22 00:15:20 +01:00
CiteCSSFileModuleTest.php tests: Use $this->getServiceContainer() 2023-10-26 19:59:14 +00:00
CiteDbTest.php tests: Use $this->getServiceContainer() 2023-10-26 19:59:14 +00:00
CiteHooksTest.php tests: Use $this->getServiceContainer() 2023-10-26 19:59:14 +00:00
CiteIntegrationTest.php Replace all Language and Parser mocks with no-op mocks 2023-07-27 10:00:28 +00:00
ReferenceMessageLocalizerTest.php Remove single use classes from the use section 2019-12-17 14:57:55 +01:00