wiki.techinc.nl/tests/phpunit/includes/block
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
..
Restriction Reduce SpecialBlock/Api logic duplication 2021-01-22 05:49:50 +01:00
BlockErrorFormatterTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
BlockManagerTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
BlockRestrictionStoreTest.php More misc test cleanup 2020-12-24 00:52:06 +00:00
CompositeBlockTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
DatabaseBlockTest.php Relax AbstractBlock typehints to UserIdentity where possible 2021-03-22 16:12:21 -06:00