wiki.techinc.nl/tests/phpunit/unit/includes
daniel ad6879e6b6 REST Handler: add unit tests for base class
This adds unit tests for the Handler base class.

This includes tests for public and protected methods.
Since the Handler base class is an extension point, the protected methods
are part of the stable public interface.

Change-Id: Ibe9fcbb139683dad03b92cd0618c3c0e8feb8b94
2020-05-26 10:33:36 +00:00
..
auth Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
cache HtmlCacheUpdater: Add getUrls() method and support selective purging 2020-04-30 18:16:07 +00:00
changes Cleanup of old PHPUnit usage, part 2 2019-10-04 21:47:46 -07:00
composer Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
config Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
content Fix SingleSpaceBeforeSingleLineComment 2020-05-11 00:57:11 +00:00
debug/logger tests: Use ::class rather than string class name 2020-03-14 02:00:55 +00:00
deferred Move unit tests, round III 2019-07-09 22:06:59 +02:00
diff Make use of DiffOp::norig/nclosing() and update tests 2020-03-25 15:17:17 +00:00
exception Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
filebackend Merge "phpunit: Change optional params before required params to also be required" 2020-03-30 21:29:45 +00:00
filerepo/file phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
GlobalFunctions Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
HookContainer Update setTemporaryHook() to use scopedRegister() 2020-05-11 14:12:00 +10:00
htmlform Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
http Split HttpTest and SessionTest to unit and integration 2019-07-13 21:01:09 +02:00
installer Merge "Fix installation failure due to unexpected dbpath under CLI installation" 2019-09-06 17:38:36 +00:00
interwiki tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
jobqueue Return deduplication to CategoryMembershipJob 2019-10-29 06:10:22 +00:00
json Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
language Fix some PSR12.Properties.ConstantVisibility.NotFound in tests/phpunit/ 2020-05-09 23:55:09 +00:00
libs Fix some PSR12.Properties.ConstantVisibility.NotFound in tests/phpunit/ 2020-05-09 23:55:09 +00:00
media tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
Message UserNameUtils: use ITextFormatter instead of MessageLocalizer 2020-04-13 09:28:02 -07:00
objectcache tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
page tests: Make static/non-static functions match 2020-04-29 10:59:53 +03:00
parser Function visibility in ParserFactoryTest.php 2020-05-10 23:44:08 +01:00
password phpunit: Add error_reporting/AtEase check to MediaWikiUnitTestCase 2020-05-09 01:48:45 +00:00
preferences Add MultiTitleFilter class 2020-04-28 14:06:51 +00:00
registration Hook Container 2020-04-17 15:48:38 +10:00
resourceloader tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
Rest REST Handler: add unit tests for base class 2020-05-26 10:33:36 +00:00
Revision phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
revisionlist Add tests for RevisionList/RevisionItem classes 2020-05-12 09:36:44 -07:00
search Add faux SearchResult and SearchResultSet 2019-10-07 16:35:58 +02:00
session Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
shell shell: Skip FirejailCommandTest::testBuildFinalCommand() on Windows 2020-02-11 16:31:31 +00:00
skins Support the creation of Skins with services injected 2020-03-16 23:25:42 +00:00
Storage Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
tidy Move unit tests, round III 2019-07-09 22:06:59 +02:00
title Coding style: Auto-fix MediaWiki.Usage.PHPUnit* 2020-01-10 10:17:12 +00:00
user Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
utils Replace some oldskool @see with @inheritDoc 2019-11-08 18:00:27 +00:00
watcheditem Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
BadFileLookupTest.php Fix some PSR12.Properties.ConstantVisibility.NotFound in tests/phpunit/ 2020-05-09 23:55:09 +00:00
DerivativeRequestTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
FactoryArgTestTrait.php Add LinkBatchFactory to inject services into LinkBatch 2020-01-06 17:02:31 +01:00
FauxResponseTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FormOptionsInitializationTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
FormOptionsTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
LicensesTest.php Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
PathRouterTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SanitizerValidateEmailTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
ServiceWiringTest.php Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
SiteConfigurationTest.php SiteConfiguration: Optimise getSetting() internals for getAll() 2020-03-04 02:12:16 +00:00
TitleArrayFromResultTest.php Replace all new stdClass() with identical (object)[] 2020-03-04 21:18:30 +00:00
XmlJsTest.php Move unit tests, round III 2019-07-09 22:06:59 +02:00
XmlSelectTest.php Replace complicated assertions with assertIsString() and such 2020-01-28 19:17:58 +00:00