mediawiki-extensions-Cite/tests/phpunit/integration
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
..
AnchorFormatterTest.php Drop unused cite_reference(s)_link_prefix messages 2024-01-04 13:17:42 +01:00
CiteParsoidTest.php Ensure CiteParsoidTest registers our Cite implementation 2024-01-24 20:09:36 +00:00
CiteTest.php Rename ReferencesFormatter to ReferenceListFormatter 2024-02-07 18:20:02 +01:00
FootnoteMarkFormatterTest.php Don't search for [[MediaWiki:cite_link_label_group-]] 2024-01-09 17:00:07 +01:00
ValidatorTest.php Drop obscure error message about an unused group 2024-03-04 13:04:36 +01:00