AnaïsGueyte
d287af1af1
Remove GlobalBlock calls from Thanks
...
Remove the usage of User::isBlockedGlobally and User::getGlobalBlock
Bug: T318891
Change-Id: I79450b34523d0ecb1a7a7b1e5a99b7650e02866e
2022-11-09 14:01:45 -05:00
Alexander Vorwerk
559e3e04ce
MediaWikiTestCase -> MediaWikiIntegrationTestCase
...
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.
Bug: T293043
Change-Id: Ic6305e141941667fc52844ae45386ce69a60e8e4
2021-10-13 12:28:31 +02:00
Roman Stolar
28501aa637
Update DatabaseBlock construct option 'by' to use User Identity only
...
Bug: T283641
Change-Id: I0b79f99f89d386288529cd17b8542b90cccf451a
2021-06-01 12:21:42 +03:00
STran
43dd004a62
Allow partially blocking giving thanks
...
- Add hook to enable blocking thanks
- Check if user is blocked from 'thanks' action
and disable giving thanks from API and UI if so
Bug: T242785
Change-Id: I290a7c39c6fcb22a8ab4a9ecbad76a239cb18ea0
2021-05-12 13:06:09 -07:00
Umherirrender
6a8776d1b1
Use ::class for class name
...
This works also for non-existing classes,
because it is resolved on compile time
Change-Id: Ib40f1aeea35e474530fea42c43d593f6c86f4487
2021-04-08 21:14:44 +02:00
Reedy
3749db7eba
Namespace extension
...
Change-Id: Ic9e0b8d6b3cc6b9be4d6b026cb0a3b4a12aef38f
2021-03-20 18:22:17 -07:00
Umherirrender
1ec0aed694
Inline class property in tests
...
Change-Id: Iaa52bd9faafee62ac524e19964bd1aa2feea129b
2021-01-17 20:15:26 +01:00
Daimona Eaytoy
2b81f0333f
Clean up some PHPUnit 4 bc stuff
...
Bug: T192167
Change-Id: I5b08e479329503ee651580005fe7347f22939ca4
2019-10-13 11:41:05 +02:00
Max Semenik
be060b3d07
tests: setExpectedException() is deprecated
...
Change-Id: Ie9500ff2dabb9315f6fe8344acdfbb1f3f1aac33
2019-10-12 15:55:31 -07:00
Thalia
a95e0e2b91
Use MediaWiki\Block\DatabaseBlock instead of Block
...
This follows the rename of the Block class in I6d96b63ca0.
Change-Id: I6c0244987a9b2b1d62efabc2da78b79711dad878
2019-05-31 16:44:56 +01:00
Thalia
810de9afbd
Allow partially blocked users to use Thanks
...
Only prohibit users from using Thanks if they are blocked from the
associated page. This allows partially blocked users to use thanks
most of the time.
It also allows blocked users to thank on their own talk page, if
they are allowed to edit it, even if they are sitewide blocked.
Bug: T221371
Change-Id: Ic99ec38ea200e806963951b2dd67e56ecde63752
2019-05-22 22:05:33 +01:00
Sam Wilson
78831d2b68
Rename files and classes in preparation for adding log-thanks
...
Bug: T186855
Change-Id: I20f5d200c33e395aca9489b73d0ed9b1d0ad5b8c
2018-02-21 12:49:21 +08:00