Commit graph

5 commits

Author SHA1 Message Date
Lucas Werkmeister
3c5a0c862f Html: Move encodeJsVar() + encodeJsCall() from Xml
These methods really belong in the Html class, not Xml. Leave behind
soft-deprecated Xml methods that forward to the Html ones, as well as a
class alias for HtmlJsCode (renamed from XmlJsCode).

Bug: T341779
Change-Id: I99a5f9de1411d4eb5ee30226b4e8ace3ea8b2c3b
2023-07-14 13:42:02 -04:00
Daimona Eaytoy
8adf1bfb93 Replace some more usages of deprecated MWException
Bug: T328220
Change-Id: I3c36835fbd90acc301731e2b33ae4815cd4b0cc5
2023-06-09 02:07:08 +02:00
Tim Starling
5e30a927bc tests: Make some PHPUnit data providers static
Just methods where adding "static" to the declaration was enough, I
didn't do anything with providers that used $this.

Initially by search and replace. There were many mistakes which I
found mostly by running the PHPStorm inspection which searches for
$this usage in a static method. Later I used the PHPStorm "make static"
action which avoids the more obvious mistakes.

Bug: T332865
Change-Id: I47ed6692945607dfa5c139d42edbd934fa4f3a36
2023-03-24 02:53:57 +00:00
DannyS712
7c47a17b42 Move Xml::expandAttributes tests to unit tests
No integration logic needed

Change-Id: If903ea138dba3703f06c4f4dc27cac1b192b9bbe
2021-03-07 19:27:11 +00:00
DannyS712
52359768c5 Convert or split some tests to MediaWikiUnitTestCase
Don't require any integration

Change-Id: I293a84ce8fe87fc6932f8a6400d6ca443ccc6235
2021-01-07 17:51:27 +00:00