Reedy
62e1fb0b5f
Namespace LuaCommon
...
Change-Id: Ib6e912e71fb797942aca4b4f22eb0ff9e005a662
2022-08-03 06:03:57 +00:00
Reedy
c479ad6f86
Namespace LuaStandalone engine
...
Change-Id: I7d3f77a56c8b74e0481197224006f19ff4c9d108
2022-08-03 06:03:48 +00:00
Reedy
1628cfa367
Namespace LuaSandbox engine
...
Change-Id: I485401c202057ae0fea7226ab21e68ce1c7d40c8
2022-07-30 22:51:42 +01:00
Reedy
6f411e3921
Minor cleanup
...
Change-Id: Ic81ab852c43e98370097d01c3b6d6cddee7a5850
2022-04-16 22:09:10 +01:00
libraryupgrader
29f4c03de1
build: Updating dependencies
...
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
npm:
* postcss: 7.0.35 → 7.0.36
* https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.0 → 5.1.2
* https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
* https://npmjs.com/advisories/1753 (CVE-2021-33623)
Change-Id: If0310d25d0380a6d4e936e666729e6a65a90a710
2021-07-23 21:34:32 +00:00
Umherirrender
f129988d82
Improve function and property documentation in tests
...
Change-Id: I81e957035175f9fe0dad9494c92ab342283df983
2021-01-29 08:06:12 +00:00
C. Scott Ananian
a73ac7bd4e
Don't invoke Parser::__construct directly
...
This has been deprecated since 1.34. Modern code should use the Parser or
ParserFactory service.
Change-Id: I74efda708470efeb82f8f80346ec1ee7e9fd8f2b
2020-04-16 16:32:58 -04:00
DannyS712
fb850e853c
Don't fall back to global $wgUser when creating ParserOptions
...
Pass a user when relevant, or use ParserOptions::newFromAnon()
Bug: T246861
Change-Id: I44adb6d5c037de2fb05573cde3c7356cb73e8b42
2020-03-07 02:33:24 +00:00
Umherirrender
ef8aff71ec
Use class name resolution to refer to class names
...
::class is validated by phan and avoids misspelled class names
Change-Id: I613d5df56fcee6099e4294f5c6df078aafad1210
2020-01-02 16:59:55 +00:00
James D. Forrester
4a93593abf
build: Upgrade mediawiki-codesniffer to v28.0.0
...
Change-Id: Ie4cb4cbee163943cd159eb0ad1d7deaac10e68d8
2019-10-11 11:31:29 -07:00
Amir Sarabadani
167e4cb60f
Clean up most of b/c for phpunit4
...
We don't support phpunit4 anymore:
https://w.wiki/9UT
Change-Id: I13a4a09e21a13c8f1e29b9e0ca29f05d1eac997d
2019-10-06 00:11:37 +02:00
Amir Sarabadani
013d57f98c
Avoid using MediaWikiIntegrationTestCase on unit tests
...
MediaWikiIntegrationTestCase (formerlly know as MediaWikiTestCase)
is a very heavy class that resets the database, caches and services between
every test.
Bug: T229180
Change-Id: I3d328d6ba7009e87c0f432a4f8d84d774ea57e5f
2019-08-14 12:31:47 +00:00
Kunal Mehta
d91a8cf8a0
Add @covers tags to all tests
...
Bug: T195160
Change-Id: I77ce544e9c166fef6c6fb02f67d1de6ddf0c2465
2018-05-29 11:37:27 -07:00
Kunal Mehta
f76ba3c465
Disable Squiz.Classes.ValidClassName.NotCamelCaps globally
...
Instead of per-file. This happens to also fix a false positive with the
PhpunitAnnotations sniff.
Change-Id: I22621c37217ed2db9d8b3591df1a1421c25fa7f6
2018-05-24 22:26:11 -07:00
Brad Jorsch
9fefb11d56
Replace uses of each()
...
It's deprecated in PHP 7.2, may as well replace it now.
Bug: T174354
Change-Id: I2c37229d69a9646edaa61e25e28b13e8190a8359
2017-09-19 16:46:51 -04:00
Kunal Mehta
31820c673a
Move tests into tests/phpunit and remove UnitTestsList hook
...
This takes advantage of extension.json's unit tests autodiscovery
mechanism.
Bug: T142120
Change-Id: Id526f3368fc73ba7e6ef1d793ea70ab05fbd9517
2017-07-07 13:50:39 -07:00