mediawiki-extensions-Math/tests/phpunit
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
..
DummyPropertyDataTypeLookup.php Move test helper classes into own class file 2019-12-06 21:47:52 +01:00
MathCoverageTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathDatabaseTest.php Fix escaping issues and a series of unrelated code cleanups 2020-03-21 14:53:15 +00:00
MathDataUpdaterTest.php build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 22:01:54 +00:00
MathFormatterTest.php build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 22:01:54 +00:00
MathHooksTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathIdTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathInputCheckRestbaseTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathInputCheckTest.php Always call original constructors in tests, and more cleanups 2019-11-26 14:42:37 +01:00
MathLaTeXMLDatabaseTest.php Fix escaping issues and a series of unrelated code cleanups 2020-03-21 14:53:15 +00:00
MathLaTeXMLTest.php Merge "Update tests to not use MockBuilders, if not needed" 2019-11-26 11:34:45 +00:00
MathMathMLTest.php Avoid using Title::__construct 2020-03-08 10:33:17 +00:00
MathMLHttpRequestTester.php Move test helper classes into own class file 2019-12-06 21:47:52 +01:00
MathMLRdfBuilderTest.php Add $snakNamespace parameter to ValueSnakRdfBuilder implementer 2020-01-18 14:06:43 +00:00
MathMLTestStatus.php Move test helper classes into own class file 2019-12-06 21:47:52 +01:00
MathoidCliTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathPngTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathRendererTest.php Always call original constructors in tests, and more cleanups 2019-11-26 14:42:37 +01:00
MathRestbaseInterfaceTest.php build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 22:01:54 +00:00
MathSourceTest.php Make all @covers tags absolute, and fix some 2019-11-26 11:01:23 +01:00
MathValidatorTest.php Stop using deprecated assertType 2020-01-17 16:15:37 +00:00