Allows us to reduce direct mocking in individual tests, or relying on MediaWikiServices, by having a reusable service instead that can be used in unit tests. Make use of it in a few places. This dummy service is also less coupled to individual tests; in the rest handler tests, replacing mocks that report that only a specific string is an ip address with the actual implementation that accepts other ip address, and in BlockUtilsTest use an actually invalid user name instead of making the mock UserNameUtils complain about a perfectly valid name. Change-Id: Iaa3195002ac4ae7e0c9c58ed57c80c02762d4070 |
||
|---|---|---|
| .. | ||
| AbstractBlockTest.php | ||
| BlockActionInfoTest.php | ||
| BlockPermissionCheckerTest.php | ||
| BlockUtilsTest.php | ||
| SystemBlockTest.php | ||