wiki.techinc.nl/tests/phpunit/unit/includes
Daimona Eaytoy 535d7abf59 phpunit: Mass-replace setMethods with onlyMethods and adjust
Ended up using
  grep -Prl '\->setMethods\(' . | xargs sed -r -i 's/setMethods\(/onlyMethods\(/g'

special-casing setMethods( null ) -> onlyMethods( [] )

and then manual fix of failing test (from PS2 onwards).

Bug: T278010
Change-Id: I012dca7ae774bb430c1c44d50991ba0b633353f1
2021-04-16 20:15:00 +02:00
..
actions Make ViewActionTest a pure unit test 2021-02-27 01:24:18 +00:00
api phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
auth phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
block AbstractBlock::setTarget() don't always use MediaWikiServices 2021-03-30 16:24:10 +00:00
cache HTMLFileCache: replace Title in method signatures 2021-04-14 18:49:45 +02:00
changes Convert ChangesListStringOptionsFilterGroupTest to pure unit tests 2021-04-14 04:17:54 +00:00
composer Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
config phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
content phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
db Convert MWLBFactoryTest to pure unit tests 2021-04-14 16:48:30 +00:00
debug Merge "Do not use a NullLogger when no handler is declared" 2021-04-16 16:40:15 +00:00
deferred Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
diff Convert UnsupportedSlotDiffRendererTest to a pure unit test 2021-02-27 02:06:10 +00:00
editpage phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
exception Covert HttpErrorTest to a pure unit test 2021-03-02 10:48:44 +01:00
filebackend Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
filerepo/file
GlobalFunctions Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
historyblob Convert DiffHistoryBlobTest to pure unit test 2021-04-14 02:09:51 +00:00
HookContainer HookContainerTest: fix order of use statements 2021-03-24 15:58:35 +00:00
htmlform Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
http Upstream MwHttpRequestToResponseInterfaceAdapter from Wikibase 2020-10-07 10:17:37 +02:00
installer Remove "@group Database" from non-integration tests 2021-01-12 12:11:44 +00:00
interwiki phpunit: Remove odd "MediaWiki" group from tests using it 2021-01-08 18:35:30 +00:00
jobqueue Return deduplication to CategoryMembershipJob 2019-10-29 06:10:22 +00:00
json Remove incomplete @param from test function 2021-02-01 20:19:22 +01:00
language Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
libs phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
linker Convert LinkRendererFactoryTest to a pure unit test 2021-03-10 15:35:13 +00:00
mail Convert or split some tests to MediaWikiUnitTestCase 2021-01-07 17:51:27 +00:00
media tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
Message Convert ConverterTest to pure unit tests 2021-03-22 15:59:42 +00:00
objectcache phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
page Remove MovePageFactoryTest 2021-04-15 14:05:49 +10:00
parser phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
password Split PasswordPolicyChecksTest into separate unit tests 2021-02-27 22:33:54 +00:00
Permissions Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
poolcounter phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
preferences phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
registration Convert ExtensionJsonValidatorTest to pure unit tests 2021-03-22 16:02:51 +00:00
resourceloader build: Swap deprecated @codingStandardsIgnore to phpcs:ignore 2021-04-04 21:18:22 +02:00
Rest Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
Revision Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
revisionlist Add tests for RevisionList/RevisionItem classes 2020-05-12 09:36:44 -07:00
search phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
session phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
shell Use Shellbox for Shell::command() etc. 2021-02-05 21:51:58 +11:00
site Convert MediaWikiPageNameNormalizerTest to a pure unit test 2021-03-11 18:45:57 +00:00
skins Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
Storage phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
tidy Deprecate MWTidy and TidyDriverBase::supportsValidate() 2021-03-16 12:29:55 -07:00
title Remove Title from public interface of OutputPage 2021-04-16 10:01:56 -07:00
user Merge "Remove $actor field from UsererIdentityValue" 2021-04-14 14:40:12 +00:00
utils phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
watcheditem phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
watchlist Convert WatchlistManager to use Authority and PageIdentity 2021-04-14 18:21:58 -04:00
BadFileLookupTest.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
DeprecatedGlobalTest.php Make DeprecatedGlobalTest a pure unit test 2021-03-01 02:54:27 +00:00
DerivativeRequestTest.php
FactoryArgTestTrait.php Factor out rollback logic from WikiPage 2021-04-14 11:49:07 -07:00
FauxResponseTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FeedUtilsTest.php FeedUtils: Update regex to match classes appropriately, and test 2020-12-15 07:35:10 +00:00
FormOptionsInitializationTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FormOptionsTest.php Update docblock of FormOptionsTest 2021-01-12 12:04:12 +00:00
HeaderCallbackTest.php HeaderCallback: Sanitize cookie values in debug logs 2020-06-28 22:17:28 +00:00
LicensesTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
ListToggleTest.php Make ListToggleTest a pure unit test 2021-03-12 14:42:10 +00:00
MovePageTest.php Convert MovePage to Authority 2021-03-17 19:43:46 -06:00
PathRouterTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
PingbackTest.php Reset fake timestamps for unit tests too 2021-04-14 21:01:33 +00:00
ProxyLookupTest.php Add tests for ProxyLookup 2021-03-31 00:21:24 +00:00
SiteConfigurationTest.php Add missing @param and @return to documentation in tests 2021-01-22 19:57:25 +01:00
TitleArrayFromResultTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
TitleTest.php Add Unit tests for Title class 2021-01-21 03:51:20 +00:00
XmlJsTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
XmlSelectTest.php Minor cleanup to XmlSelectTest 2021-01-16 02:32:44 +00:00
XmlTest.php Move Xml::expandAttributes tests to unit tests 2021-03-07 19:27:11 +00:00