mediawiki-extensions-Math/tests
Thiemo Kreuz a429c8cc35 Fix escaping issues and a series of unrelated code cleanups
Actual changes:
* Let the special page accept the subpage parameter, e.g.
  [[Special:MathWikibase/Q6203]].
* Fix some of the message escaping issues in SpecialMathWikibase.
  Messages that are just plain text and not supposed to contain any
  parameters, wikitext, HTML, or something like this should be
  properly escaped, either via Html::rawElement( $msg->escaped() ) or
  better Html::element( $msg->plain ). The later approach is cheaper.

Other code cleanups that don't affect production:
* Reduce the amount of duplicate code in SpecialMathWikibase.
* Make use of the preg_match() return value.
* Remove default parameters from parent::__construct() call.
* Remove some auto-generated comments.
* Remove some comments that don't add new information, but just repeat
  what the code already says.
* Make use of PHPUnit's assertCount().

We can split this patch into smaller patches, if you prefer. This
should especially be done if one of the changes is controversial, to
not block the other changes. Please tell me.

Change-Id: I8c20014435af3d2ac9c7381fe5fd00b9fe49b2c2
2020-03-21 14:53:15 +00:00
..
parser Update extensions to take advantage of parser test autodiscovery 2018-04-13 17:37:23 +00:00
phpunit Fix escaping issues and a series of unrelated code cleanups 2020-03-21 14:53:15 +00:00
selenium build: Update eslint-config-wikimedia 2019-10-04 15:38:36 +01:00
ParserTest.json Make error HTML valid XHTML 2019-04-24 12:06:14 +02:00
wfTest.php Fix escaping issues and a series of unrelated code cleanups 2020-03-21 14:53:15 +00:00