wiki.techinc.nl/tests/phpunit/unit/includes
Func 7f74a2e50c Clean up tests that misused the parameters of assertSame/Equals
Expected value is the first parameter to assertSame() or assertEquals().
And turn to use assertCount() for some assertions aginst count of array.

Based on code search `assert(?:Same|Equals)\(.+,.+expected` and I look
through files roughly, so some assertions that don't contains 'expected'
are also fixed. In the meantime, some assertions that I am not clear
about are not touched.

Change-Id: I75798b60d29fd19b33f4fdf34ed3c788db420d01
2022-02-08 07:21:10 +00:00
..
actions Revert "Replace deprecated methods IContextSource::getWikiPage && IContextSource::canUseWikiPage" 2021-12-14 12:43:15 -08:00
api
auth
block Introduce a BlockRestrictionStoreFactory 2022-01-24 20:17:40 +01:00
cache Fix pollution of LinkBatch/LinkCache with interwiki link 2022-01-28 10:52:38 +11:00
changes Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
CommentFormatter Clean up tests that misused the parameters of assertSame/Equals 2022-02-08 07:21:10 +00:00
composer
config
content
context
dao
db
debug
deferred
diff
editpage
exception
filebackend Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
filerepo/file
GlobalFunctions
historyblob
HookContainer Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
htmlform Hard deprecate User::setOption() 2021-09-26 17:18:54 +02:00
http Clean up tests that misused the parameters of assertSame/Equals 2022-02-08 07:21:10 +00:00
import
installer
interwiki
jobqueue
json JsonCodec: Fix test 2021-12-09 19:28:30 -08:00
language Use LanguageNameUtils constants instead of strings 2021-12-05 22:13:34 +01:00
libs rdbms: Move more internal code from Database to TransactionManager 2022-02-05 04:58:40 +00:00
linker Add comment flag to LinkRenderer 2021-11-02 13:03:20 +01:00
mail
media Replace new stdClass with more compact array syntax 2021-11-02 09:43:03 +00:00
Message
objectcache
page DeletePage: add option to delete the associated talk page 2022-01-11 14:48:56 +01:00
ParamValidator/TypeDef Make UserDefTest a unit test 2021-09-13 23:55:51 -04:00
parser remove access to config globals from includes/parser 2022-02-01 07:48:57 -08:00
password Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
Permissions Support having groups inherit permissions from another group 2021-12-04 12:45:23 -08:00
poolcounter
preferences Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs 2021-11-29 14:23:26 -05:00
registration Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
resourceloader Upgrade Vue to the migration build of Vue 3 2021-12-07 19:31:43 +00:00
Rest Merge "File: remove deprecated methods" 2021-11-05 15:17:46 +00:00
Revision Revision: Inject local cache to RevisionStore 2021-12-17 19:23:19 +01:00
revisionlist
search
session
Settings Use a mutex to prevent settings cache stampedes 2022-01-28 09:13:38 -08:00
shell ShellboxClientFactory: add RPCClient getters 2021-11-05 16:41:22 +00:00
site
skins Replace new stdClass with more compact array syntax 2021-11-02 09:43:03 +00:00
Storage Convert various callers to LoadBalancer::getConnectionRef() 2022-01-27 01:02:44 +00:00
tidy tests/phpunit/unit/includes/tidy/html5lib-tests.json: Avoid use of 'insanely' in comments 2021-11-24 11:46:36 +00:00
title
user PHPUnit: Cover rewind(), next(), and key() test cases 2022-01-27 12:48:20 +00:00
utils
watcheditem Fix pollution of LinkBatch/LinkCache with interwiki link 2022-01-28 10:52:38 +11:00
watchlist
BadFileLookupTest.php
DeprecatedGlobalTest.php
DerivativeRequestTest.php
FactoryArgTestTrait.php
FauxResponseTest.php remove access to config globals from FauxResponse 2022-01-28 22:45:36 +01:00
FeedUtilsTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php
HeaderCallbackTest.php
LicensesTest.php
ListToggleTest.php
MovePageTest.php
PathRouterTest.php Clean up tests that misused the parameters of assertSame/Equals 2022-02-08 07:21:10 +00:00
PingbackTest.php rdbms: Add more return typehints 2021-09-07 08:23:36 +00:00
ProxyLookupTest.php
ReadOnlyModeTest.php phpunit: Remove file_exists check from ReadOnlyModeTest 2021-09-11 18:22:16 +00:00
SiteConfigurationTest.php SiteConfiguration: Don't pass null to str_replace() 2022-01-11 14:42:50 +01:00
TitleArrayFromResultTest.php Stop accessing members of the Title class publicly 2021-11-22 14:22:51 +00:00
TitleTest.php tests: Avoid trying to access the DB in data providers 2021-09-20 10:32:45 +01:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php