libraryupgrader
5357695270
build: Updating dependencies
...
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
The following sniffs now pass and were enabled:
* Generic.ControlStructures.InlineControlStructure
* MediaWiki.PHPUnit.AssertCount.NotUsed
npm:
* svgo: 2.3.0 → 2.3.1
* https://npmjs.com/advisories/1754 (CVE-2021-33587)
Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
2021-07-22 03:36:05 +00:00
ZabeMath
3c978f6fc6
WikiImporter: inject services
...
This patch injects services into WikiImporter. It also adds
a WikiImporterFactory service for creating WikiImporter
instances.
Change-Id: I2966297e5728fca1ae8280361f1008cef6c6041b
2021-05-24 23:10:07 +02:00
daniel
282e4ede1a
ImportReporter: replace Title in method signatures
...
Bug: T278459
Change-Id: I9ff5f1989e15a1fe3988845abae935e6372d40ac
2021-05-12 23:25:21 +02:00
addshore
959bc315f2
MediaWikiTestCase to MediaWikiIntegrationTestCase
...
The name change happened some time ago, and I think its
about time to start using the name name!
(Done with a find and replace)
My personal motivation for doing this is that I have started
trying out vscode as an IDE for mediawiki development, and
right now it doesn't appear to handle php aliases very well
or at all.
Change-Id: I412235d91ae26e4c1c6a62e0dbb7e7cf3c5ed4a6
2020-06-30 17:02:22 +01:00
DannyS712
cf2c2a0778
Tests: Replace ::doDeleteArticle with WikiPage::doDeleteArticleReal
...
Not including WikiPageDbTestBase, which is testing the method
Bug: T248000
Change-Id: I1848a79be9e25759654053e88ef956269342f588
2020-03-25 11:34:17 -07:00
Max Semenik
48a323f702
tests: Add explicit return type void to setUp() and tearDown()
...
Bug: T192167
Depends-On: I581e54278ac5da3f4e399e33f2c7ad468bae6b43
Change-Id: I3a21fb55db76bac51afdd399cf40ed0760e4f343
2019-10-30 14:31:22 -07:00
Thiemo Kreuz
8a4e15db7f
Add missing newline between <?php and namespace/use section
...
The rest of the codebase is using this code formatting standard.
Change-Id: I4d2ba61757a7e28d40096d9dc5915005c340d4f2
2019-06-03 13:36:48 +00:00
Umherirrender
69dbaf3f88
build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
...
Change-Id: Ib494b47c54fe6354d166055b1e1b31d3583bb992
2018-03-29 21:53:10 +02:00
Timo Tijhof
14644a2fb0
phpunit: Add some @covers and @large/@medium to integration tests
...
- @small: single class, no I/O (unit test).
- @medium: multi-class (partial or no mocks), no I/O (unit/integration test).
- @large: multi-class, I/O allowed (integration test).
Change-Id: I09317e6dd9b0ee34b7467fbffdd07957ef55dc04
2018-03-20 09:14:34 -07:00
daniel
9c1d8a9709
Avoid dumping big stack traces from unit tests.
...
Using assertFalse( $exception ) results in potentially very large stack
trace dumps, when $exception is an exception from deep inside MediaWiki.
Stack trace dumps include a dump of all parameters, resulting in console
output of (in my case) over 160 MB.
Change-Id: Ib78493d86531844a892586c071b2fa631ad765eb
2018-03-13 20:54:06 +01:00
Umherirrender
b5cddfb27b
Remove empty lines at begin of function, if, foreach, switch
...
Organize phpcs.xml a bit
Change-Id: Ifb767729b481b4b686e6d6444cf48b1f580cc478
2017-07-01 11:34:16 +00:00
addshore
b12086b618
Get ConfigFactory & MainConfig from MediaWikiServices
...
Change-Id: Iafdd7e00747060572463ffb05aae4543f3a06163
2016-11-23 00:12:38 +00:00
georggi
bf9f4141b7
Tests: Reflect recent changes to MediaWiki import structure
...
Bug: T43938
Change-Id: Id8d40d8fa0de59ac07749b3cefdd627b98fe175e
2016-01-05 14:08:31 +02:00