wiki.techinc.nl/tests/phpunit/includes
Máté Szabó 344481f60d Move trivially compatible tests to the unit tests suite
This changeset resumes work on T89432 and related tickets
by porting an initial set of tests to the new unit test suite
separated out in I69b92db3e70093570e05cc0a64c7780a278b321a.
The tests were only ported if they worked immediately without
requiring any changes other than changing the test case class
to MediaWikiUnitTestCase and moving the test to the new suite.
If a test failed for any reason (even trivial misconfiguration),
it was NOT ported.

With this change, the unit tests suite now consits of a total
of 455 tests. As before, you can run these tests via the following
command:
$ composer phpunit:unit

Bug: T84948
Bug: T89432
Bug: T87781
Change-Id: Ibb8175981092d7f41864e641cc3c118af70a5c76
2019-06-30 15:23:53 +02:00
..
actions Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
api Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
auth Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
block Filter out duplicate autoblocks when checking for blocks 2019-06-20 22:01:44 +01:00
cache Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
changes Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
changetags Fix ChangeTagsTest failing on Postgres 2019-03-15 10:10:33 +01:00
collation Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
composer Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
config Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
content Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
context
db Define unit and integration test suites 2019-06-28 12:18:18 -04:00
debug Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
deferred search: refactor DatabaseSearch to take a load balancer instance 2019-06-26 03:03:37 +00:00
diff Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
externalstore Make ExternalStore wrap ExternalStoreFactory and create access class 2019-06-28 14:31:44 -07:00
filebackend Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
filerepo FileRepo: Use Late Static Binding in File static constructors 2019-06-15 13:41:39 +02:00
GlobalFunctions Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
htmlform Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
http Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
import Merge "Inline trivial object creation helpers in tests" 2019-06-11 20:55:44 +00:00
interwiki Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
jobqueue Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
json Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
libs Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker Update LinkRenderer to use NamespaceInfo 2019-05-07 14:52:17 +02:00
logging Merge "Tolerate invalid titles in some ChangesFeed and LogFormatter code" 2019-06-24 23:29:11 +00:00
mail
media Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
Navigation Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
objectcache Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
page Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
pager
parser Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
password Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
Permissions Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
poolcounter Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
preferences Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
rcfeed
registration Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
resourceloader resourceloader: Remove support for raw modules 2019-06-27 00:08:14 +00:00
Rest Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
Revision Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
search Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
session Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
shell Skip ::testT69870() under Windows system 2019-06-22 19:59:27 +00:00
site Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
skins Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
sparql Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
specialpage Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
specials Merge "Add Special:Mute as a shortcut for muting notifications" 2019-06-25 17:15:39 +00:00
Storage Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
tidy Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
title Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
user Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
utils AutoLoader: Skip tokenizing of irrelevant lines in ClassCollector 2019-06-19 15:09:49 +00:00
watcheditem Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
ActorMigrationTest.php Inline trivial object creation helpers in tests 2019-05-28 16:12:28 +02:00
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php Make RepoGroup a service instead of singleton 2019-05-06 13:57:40 +03:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
DiffHistoryBlobTest.php
EditPageTest.php EditPage: Migrate Title::userCan() calls to PermissionManager 2019-05-18 20:49:21 +02:00
ExportTest.php
ExtraParserTest.php
FauxRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
GitInfoTest.php
HooksTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HtmlTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
LinkerTest.php Make userLink() not fail too hard on false and null. 2019-06-05 14:51:57 +02:00
LinkFilterTest.php
ListToggleTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MagicWordFactoryTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiServicesTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiTest.php
MediaWikiVersionFetcherTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MergeHistoryTest.php
MessageTest.php Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
MovePageTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php OutputPage::addScriptFile: Drop silencing invalid paths, deprecated in 1.24 2019-06-27 17:22:52 +00:00
PagePropsTest.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
PathRouterTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
PrefixSearchTest.php
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
RevisionMcrDbTest.php
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00: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 Make ExternalStore wrap ExternalStoreFactory and create access class 2019-06-28 14:31:44 -07:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php
SanitizerValidateEmailTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
SiteStatsTest.php jobqueue: add GenericParameterJob and RunnableJob interface 2019-04-08 11:05:23 -07:00
StatusTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
SystemBlockTest.php Separate Block into AbstractBlock, Block and SystemBlock 2019-05-07 17:36:31 -05:00
TemplateCategoriesTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TemplateParserTest.php
TestLogger.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
TestUser.php
TestUserRegistry.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
TimeAdjustTest.php
TitleArrayFromResultTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
TitleMethodsTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
TitlePermissionTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TitleTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
WebRequestTest.php Rename CDN config variables to be generic, deprecating the old names 2019-05-24 21:09:22 +00:00
WikiMapTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
WikiReferenceTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlJsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlTest.php