wiki.techinc.nl/tests/phpunit/includes
Aryeh Gregor a220518f8f 100% test coverage for NamespaceInfo
In the new tests I added, I tried to cover all interesting scenarios and
not just hit each line to make the coverage green. But I didn't review
all the existing tests to see if they were properly thorough, so there
might still be room for improvement.

I uncovered a bug here that will be addressed in a separate commit,
because the fix is not so simple. For now I left the test expectation as
a @todo.

Change-Id: I33d556bf83c631a8a02a6c77f2f5cb06b8dbf869
2019-05-06 14:17:06 +03:00
..
actions Add PHPUnit tests for methods in ViewAction::class 2018-11-20 18:13:50 +01:00
api Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
auth Avoid/Replace usage of deprecated wfMemcKey() function 2019-05-02 14:27:31 +00:00
block Introduce a BlockManager service 2019-04-29 17:47:55 +01:00
cache Default $wgActorTableSchemaMigrationStage to READ_NEW 2019-04-09 13:50:41 -04:00
changes Get rid of unnecessary func_get_args() and friends 2019-04-12 20:17:01 +00:00
changetags Fix ChangeTagsTest failing on Postgres 2019-03-15 10:10:33 +01:00
collation Use PHP 7 "\u{NNNN}" Unicode codepoint escapes in string literals 2018-06-04 16:20:13 +00:00
composer
config Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
content Merge "JsonContent: Add missing prefix to selector" 2019-04-15 15:25:52 +00:00
context
db Mock IDatabase::class instead of DatabaseMysqli::class 2019-05-01 17:38:11 +02:00
debug Fix class name handling in DeprecationHelper 2019-04-19 01:09:25 -07:00
deferred Expose external link additions and deletions 2019-02-07 17:09:36 -05:00
diff Fix order of @var parameter in PHP 2019-04-08 18:37:56 +02:00
editpage
exception
externalstore
filebackend Deprecate the Http class 2019-05-06 12:07:26 +03:00
filerepo Mock IDatabase::class instead of DatabaseMysqli::class 2019-05-01 17:38:11 +02:00
GlobalFunctions GlobalFunctions: Remove usage of wfArrayFilter & wfArrayFilterByKey 2019-04-27 07:48:07 +01:00
htmlform Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
http Deprecate the Http class 2019-05-06 12:07:26 +03:00
import Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
installer Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
interwiki Merge "Hard deprecate Interwiki static methods" 2018-06-09 09:33:09 +00:00
jobqueue jobqueue: Follow-up for fc5d51f129 (added GenericParameterJob) 2019-04-25 15:44:11 +00:00
json Finish FormatJson::encode() test coverage 2019-02-02 22:04:35 -08:00
libs Get rid of unnecessary func_get_args() and friends 2019-04-12 20:17:01 +00:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker Simplify strings in PHP code 2019-03-01 22:16:26 +01:00
logging Linker: Use parentheses by default in userToolLinksRedContribs() 2019-04-19 15:09:36 -07:00
mail mail: Always quote uncoded names in MailAddress 2018-04-24 21:29:25 +00:00
media Remove broken explode() from MediaWikiMediaTestCase::dataFile() 2019-03-28 23:01:27 +00:00
objectcache
page Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
pager
parser Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
password Remove empty and unnecessary /* @{{ … */ comments 2019-03-15 14:59:19 +01:00
Permissions Set global config for test to avoid failure 2019-04-14 14:31:23 +01:00
poolcounter Get rid of unnecessary func_get_args() and friends 2019-04-12 20:17:01 +00:00
preferences Update DefaultPreferencesFactory to use NamespaceInfo 2019-05-06 12:19:13 +03:00
rcfeed
registration registration: Allow to require environment abilities 2019-04-13 08:14:44 -07:00
resourceloader Merge "resourceloader: Omit non-existent messages in MessageBlobStore" 2019-04-19 00:47:45 +00:00
Revision Don't require Title for getTimestampFromId 2019-05-05 14:35:53 +03:00
search Fix order of @var parameter in PHP 2019-04-08 18:37:56 +02:00
session Fixed typo 'implments' and 'implmented' 2019-03-21 16:17:09 +01:00
shell Remove excessive indenting of parameters on newlines 2018-11-06 10:57:17 +00:00
site Avoid usage of deprecated wfGetMainCache() function 2019-04-28 20:41:17 +01:00
skins skins: Move default style modules to getDefaultModules 2018-05-04 23:52:02 +00:00
sparql build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-16 15:51:11 +00:00
specialpage Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
specials Merge "ContribsPager: Fix slow queries" 2019-05-01 04:38:54 +00:00
Storage Alter two uses of hasOrMadeRecentMasterChanges() for consistency 2019-04-23 11:34:09 -07:00
tidy Remove references to Html5Depurate 2019-03-13 16:33:37 -05:00
title 100% test coverage for NamespaceInfo 2019-05-06 14:17:06 +03:00
upload Add missing empty lines between methods 2019-01-15 19:14:35 +00:00
user Convert WatchedItem and friends to UserIdentity 2019-05-05 14:35:52 +03:00
utils Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
watcheditem Convert WatchedItem and friends to UserIdentity 2019-05-05 14:35:52 +03:00
ActorMigrationTest.php Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
AutoLoaderTest.php Improve AutoLoader test coverage 2018-05-26 21:29:36 -07:00
AutopromoteTest.php
BlockTest.php Rename BlockRestriction -> BlockRestrictionStore and wire it up as a service 2019-04-16 21:55:15 -04:00
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Fix CommentStoreComment RawMessage construction 2019-02-13 11:17:10 -05:00
CommentStoreTest.php Add missing use for IMaintainableDatabase 2019-02-20 20:57:18 +01:00
CommentStoreTest.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ContentSecurityPolicyTest.php CSP: In tests, use setMwGlobals() instead of manual set+undo 2018-08-19 01:43:52 +01:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php Fix IP handling in DerivativeRequest 2018-10-31 20:34:58 -07:00
DiffHistoryBlobTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
EditPageTest.php Add missing @covers to action related tests 2019-02-01 22:13:32 +01:00
ExportTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ExtraParserTest.php During special page transclusion, save and restore context's WikiPage too 2018-10-19 22:19:52 +02:00
FauxRequestTest.php
FauxResponseTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
FormOptionsInitializationTest.php Use TestingAccessWrapper in FormOptionsInitializationTest 2019-01-29 21:33:42 -08:00
FormOptionsTest.php
GitInfoTest.php Allow tests to run with a non-writable source tree 2018-08-30 10:48:50 +10:00
HooksTest.php Drop wfRunHooks, deprecated since 1.25 2018-10-10 15:30:00 -07:00
HtmlTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
LicensesTest.php
LinkerTest.php Show confirmation prompt on rollback links 2019-03-21 10:13:22 +00:00
LinkFilterTest.php Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
ListToggleTest.php
MagicWordFactoryTest.php MagicWordFactory: Follow-up on I5d2166f155e31900cb40c 2018-12-18 12:12:39 +01:00
MediaWikiServicesTest.php Remove CryptRand and related stuff 2019-04-11 18:20:09 +01:00
MediaWikiTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
MediaWikiVersionFetcherTest.php Improve MediaWikiVersionFetcherTest 2018-08-10 11:26:57 +03:00
MergeHistoryTest.php MergeHistory: Fix flaky test due to relative timestamp 2018-08-15 02:16:02 +01:00
MessageTest.php Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
MovePageTest.php Add missing @covers to action related tests 2019-02-01 22:13:32 +01:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php Merge "parser: Omit outputting newline after final line" 2019-03-19 14:37:16 +00:00
PagePropsTest.php Automatically reset namespace caches when needed 2018-08-01 16:30:08 +03:00
PathRouterTest.php Avoid a redirect loop when the request URL is not normalized 2018-07-16 15:55:59 +10:00
PrefixSearchTest.php Reset services before every test 2018-09-03 16:38:58 +00:00
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Move getPrevious/NextRevision logic out of Title 2019-05-05 21:08:46 +03:00
RevisionMcrDbTest.php Allow getRevisionText to function without the text table. 2018-10-17 10:54:39 -04:00
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionNoContentModelDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionPreMcrDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionTest.php Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix typo in tests/includes/SampleTest.php in core 2018-11-02 12:55:09 +00:00
SanitizerValidateEmailTest.php
ServiceWiringTest.php Sort MediaWikiServices and ServiceWiring alphabetically 2019-04-10 20:59:49 +10:00
SiteConfigurationTest.php SiteConfiguration: Add test to confirm null as valid override 2018-04-24 18:31:30 +01:00
SiteStatsTest.php jobqueue: add GenericParameterJob and RunnableJob interface 2019-04-08 11:05:23 -07:00
StatusTest.php
TemplateCategoriesTest.php
TemplateParserTest.php TemplateParser: Pass FLAG_MUSTACHELOOKUP to enable parent context access 2018-09-04 12:39:34 -07:00
TestLogger.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
TestUser.php Password: replace equals() with verify() 2019-01-24 13:40:40 -08:00
TestUserRegistry.php tests: Allow string to be passed to getTestUser() etc. 2018-10-04 15:30:47 +00:00
TimeAdjustTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
TitleArrayFromResultTest.php
TitleMethodsTest.php Title: Test the ->equals() method more thoughroughly 2019-03-21 16:54:58 -07:00
TitlePermissionTest.php Set global config for test to avoid failure 2019-04-14 14:31:23 +01:00
TitleTest.php Update GenderCache to use NamespaceInfo 2019-05-06 12:08:45 +03:00
WebRequestTest.php WebRequest: Fix flaky testGetElapsedTime test case 2018-07-16 20:23:30 -07:00
WikiMapTest.php Make WikiMap::isCurrentWikiDbDomain() more rigorous 2019-03-29 19:03:28 +00:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00