mediawiki-extensions-Cite/tests/phpunit
thiemowmde 5aa6cb0c7b Replace extremely slow parser test with fast unit tests
This parser test is a bit obscure, in my opinion. We added it in
I8c4de96 to make sure we don't get thousand separators in most
places.

We continued reworking the code since then. By now it's effectively
impossible to "accidentally" get thousand separators. The
problematic methods from the Language class are not even accessible
any more from this code.

To make the tests more robust we now use createNoOpMock (done via
the previous patch) where it matters, specifically for all Language
and Parser mocks. This proves the problematic Language methods are
never called.

Bug: T253743
Bug: T238187
Change-Id: I9bfe1f4decfaf699996da63e19473c2c0d581d9d
2023-07-28 00:32:38 +00:00
..
integration Replace extremely slow parser test with fast unit tests 2023-07-28 00:32:38 +00:00
unit Replace extremely slow parser test with fast unit tests 2023-07-28 00:32:38 +00:00
CiteCSSFileModuleTest.php Use new ResourceLoader namespace 2022-05-24 23:00:08 +00:00
CiteDbTest.php Remove inline @var type hints that are not needed 2023-06-05 16:37:03 +02:00
CiteHooksTest.php Move Cite-specific settings from WikiEditor 2023-06-28 20:22:14 +02: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