wiki.techinc.nl/tests/phpunit/includes
Timo Tijhof e9f577fd6b HttpFunctions: Increase code coverage
* Complete coverage for Http::getProxy().
* Remove bogus @covers tag on data provider, and add the
  relevant MWHttpRequest::getFinalUrl to the test instead.
* Convert test to use dataProvider and add missing test cases
  to increase getFinalUrl() test coverage to 100%.
* Minor clean up in getFinalUrl to consistently use early-return
  for all cases, not just for relative 'domain' and 'isset-host'
  cases. Without this coverage actually couldn't reach 100% due
  to the remainder of the empty else branch never being reached
  (CRAP: "Redundant 'else' after 'return'")

Change-Id: I775d95965dc23a1e6c4c62ed84f9da64b6c72135
2017-03-29 00:27:57 +00:00
..
actions
api Add missing @group Database tags in tests 2017-03-18 19:13:18 -04:00
auth Demote "throttler data not found" logs to info level 2017-02-17 00:59:07 +00:00
cache tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
changes phpunit: Fix RecentChangeTest failure when coverage is enabled 2017-03-20 22:14:30 +00:00
composer
config Get ConfigFactory & MainConfig from MediaWikiServices 2016-11-23 00:12:38 +00:00
content Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
context
db Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
debug Rewrite logstash key conflict warning from I6677dbf6 2016-11-29 11:14:08 +00:00
deferred Add accessor to DeferredUpdates 2017-03-03 13:32:05 +00:00
diff
exception Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
externalstore
filebackend Fix @covers for FileBackend 2017-02-27 19:12:22 +11:00
filerepo Remove left-over references from comments to removed FSRepo class 2017-01-07 16:00:07 +00:00
GlobalFunctions Add missing @group Database tags in tests 2017-03-18 19:13:18 -04:00
htmlform Merge "HTMLForm: Allow returning Message objects from HTMLFormField::validate()" 2016-11-25 09:11:07 +00:00
http HttpFunctions: Increase code coverage 2017-03-29 00:27:57 +00:00
import Get ConfigFactory & MainConfig from MediaWikiServices 2016-11-23 00:12:38 +00:00
installer DatabaseUpdater: Stop inserting junk into 'updatelog' every time the updater runs 2016-11-30 20:13:30 +00:00
interwiki Removed deprecated usages of Interwiki methods in core 2017-01-10 12:19:31 +02:00
jobqueue
json Remove spaces after cast operators 2016-10-31 13:57:39 +00:00
libs Add tests for CSSMin::getMimeType 2017-03-26 18:08:06 +02:00
linker Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
logging tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
mail
media tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
objectcache Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
page tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
pager Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
parser Fix @covers for (non-integration) parser tests 2017-02-27 15:47:56 +11:00
password Add missing @group Database tags in tests 2017-03-18 19:13:18 -04:00
poolcounter
rcfeed Add missing @group Database tags in tests 2017-03-18 19:13:18 -04:00
registration registration: Always specify version number in extension.schema.json file 2016-12-16 11:47:15 -08:00
resourceloader Merge "resourceloader: Follow redirects for JavaScript/CSS in WikiModule" 2017-03-22 03:59:40 +00:00
search Don't use $this as a function argument 2017-03-13 11:12:50 -07:00
Services
session Demote "Unverified user provided and no metadata to auth it" log message to info 2017-02-17 01:00:39 +00:00
site Add more specific Site[] type hints to SiteStore classes 2017-01-11 16:39:13 +00:00
skins phpunit: Fix OutputPage::__construct warning in SkinTemplateTest 2017-02-08 18:19:43 +00:00
specialpage hidemyself/hidebyothers: Use rc_user_text since there is an index 2017-03-28 15:40:56 -04:00
specials Avoid database connection in SpecialSearchTest data provider 2017-03-18 15:43:16 -04:00
tidy Merge "RemexHtml tidy driver with p-wrapping" 2017-03-08 15:24:36 +00:00
title Handle missing namespace prefix in XML dumps more gracefully 2017-01-01 09:11:45 +00:00
upload tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
user RCFilters UI: Highlight behavior 2017-02-23 10:58:56 -08:00
utils Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
BlockTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
CollationTest.php
DiffHistoryBlobTest.php
EditPageTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
ExportTest.php DumpStringOutput: Rename getOutput() to __toString() 2016-07-14 06:28:16 -04:00
ExtraParserTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
FauxRequestTest.php Clean up tests for FauxRequest/WebRequest 2016-09-09 15:35:19 -07:00
FauxResponseTest.php
FormOptionsInitializationTest.php Remove "Generated by PHPUnit" comments in 3 files 2016-12-13 03:20:04 +00:00
FormOptionsTest.php Remove "Generated by PHPUnit" comments in 3 files 2016-12-13 03:20:04 +00:00
GitInfoTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
HooksTest.php
HtmlTest.php Html: Unblacklist HTML5 form validation attributes 2017-01-10 14:53:08 -08:00
LicensesTest.php
LinkerTest.php bidi-isolate usernames in Linker::userLink 2016-08-31 17:44:06 -07:00
LinkFilterTest.php Move LikeMatch to Rdbms namespace 2017-02-06 21:20:39 -08:00
MediaWikiServicesTest.php Move LBFactory to Rdbms namespace 2017-02-03 17:24:03 -08:00
MediaWikiTest.php Revert "MediaWiki.php: Redirect non-standard title urls to canonical" 2016-09-09 21:45:27 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
MessageTest.php Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
MovePageTest.php
MWNamespaceTest.php Miscellaneous indentation tweaks 2017-02-27 19:23:54 +01:00
MWTimestampTest.php Split out ConvertableTimestamp class 2016-09-16 03:00:09 +00:00
OutputPageTest.php Add missing @group Database tags in tests 2017-03-18 19:13:18 -04:00
PagePropsTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
PathRouterTest.php
PreferencesTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
PrefixSearchTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
RevisionStorageTest.php Revision::getText() was removed 2017-01-19 01:57:38 +00:00
RevisionStorageTestContentHandlerUseDB.php
RevisionTest.php Revision::getText() was removed 2017-01-19 01:57:38 +00:00
SampleTest.php Update weblinks in comments from HTTP to HTTPS 2016-11-07 15:24:46 +01:00
SanitizerTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
SanitizerValidateEmailTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
SiteConfigurationTest.php
StatusTest.php tests: Fix invalid @covers value in StatusTest.php 2016-09-22 18:29:28 +01:00
TemplateCategoriesTest.php Remove empty lines at end of functions 2016-11-05 11:55:10 +01:00
TemplateParserTest.php Better path traversal prevention in TemplateParser. 2017-03-14 18:43:11 +00:00
TestingAccessWrapper.php
TestingAccessWrapperTest.php
TestLogger.php Add TestLogger::setCollectContext and fluent interface 2017-02-01 01:45:28 +01:00
TestUser.php Make deprecated TestUser properties private 2016-06-22 15:43:54 +00:00
TestUserRegistry.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
TimeAdjustTest.php
TitleArrayFromResultTest.php
TitleMethodsTest.php
TitlePermissionTest.php Add the concept of "system blocks" 2016-12-16 12:30:03 -05:00
TitleTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
WatchedItemIntegrationTest.php Merge "Remove missed WatchedItem::resetNotificationTimestamp in test" 2016-07-28 10:22:59 +00:00
WatchedItemQueryServiceUnitTest.php API: i18n for warnings and errors 2016-12-06 10:20:48 -05:00
WatchedItemStoreIntegrationTest.php
WatchedItemStoreUnitTest.php WatchedItemStore::setNotificationTimestampsForUser(): Allow clearing timestamp 2016-12-16 14:31:24 -05:00
WatchedItemUnitTest.php Remove unused deprecated WatchedItem methods 2016-07-26 10:52:31 +00:00
WebRequestTest.php Move IP::isConfigured/TrustedProxy() to ProxyLookup service 2016-09-21 20:02:09 -07:00
WikiMapTest.php Improve WikiMap::getWikiReferenceFromWgConf() 2016-07-06 14:20:07 -04:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php Update weblinks in comments from HTTP to HTTPS 2016-10-11 17:25:10 +00:00
XmlTest.php Xml: Add test for listDropDown and remove unused getArrayFromWikiTextList 2017-03-20 22:47:19 +00:00