mediawiki-extensions-Cite/tests/phpunit
thiemowmde c02595bb97 Drop obscure error message about an unused group
The message was part of the original patch that introduced the group
feature in 2009, see https://phabricator.wikimedia.org/rECIT75004e33.
Notice how there was never a test scenario for this message. A test
was added in 2020 via I07738cc.

The message appears only in a rare edge-case when a group is entirely
unused in the text, and only when the group is not empty. The shortest
possible example is:

 <references group=g>
 <ref group=g name=a>a</ref>
 </references>

Just adding something unrelated like `<ref group=g>x</ref>` to the
text changes the error message. Now the group is "used". But this
notion is confusing to begin with. References can be part of a group,
and we can use references, but we can't use groups as if they are a
separate entity.

A better error message already exists.

Notice how this special error message doesn't appear anywhere in the
Parsoid code path. That was already using the other, more generic
error message.

Bug: T269531
Change-Id: I63f663d76e45e6c3d664f145d9a564ee00ff53cd
2024-03-04 13:04:36 +01:00
..
integration Drop obscure error message about an unused group 2024-03-04 13:04:36 +01:00
unit Merge "Rename ReferencesFormatter to ReferenceListFormatter" 2024-02-07 18:00:04 +00:00
CiteCSSFileModuleTest.php tests: Widen @covers annotations 2023-12-14 01:54:48 +00:00
CiteDbTest.php Stop writing to tablesUsed in tests 2024-01-20 12:23:34 +01:00
CiteHooksTest.php tests: Widen @covers annotations 2023-12-14 01:54:48 +00:00
CiteIntegrationTest.php Rename ReferencesFormatter to ReferenceListFormatter 2024-02-07 18:20:02 +01:00
ReferenceMessageLocalizerTest.php Drop unused cite_reference(s)_link_prefix messages 2024-01-04 13:17:42 +01:00
TestUtils.php Encapsulate ref object: limited to ReferenceStack 2024-01-09 09:59:16 +01:00