wiki.techinc.nl/tests/phpunit/includes
Ammarpad a47e06b669 Category: Return proper int for files, subcats and pages count
Count should rarely be anything other than number. Most callers
have to manually cast to integer after calling these methods[1]

Although boolean false is internally cast to 0, explicit int
for both success and failure is better here.

[1] https://codesearch-beta.wmcloud.org/search/?files=&i=nope&q=-%3EgetPageCount%5C%28

Change-Id: Ia7965835a6929b0f91453211233e188c755d8b9f
2022-01-24 06:27:18 +01:00
..
actions Make Block objects aware of which wiki they belong to 2022-01-17 21:49:20 +01:00
api Remove passing markTestSkippedIfDbType or add comment 2022-01-22 17:04:53 +00:00
auth Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
block DatabaseBlock: fetch a database connection for the correct wiki 2022-01-20 20:23:56 +00:00
cache MessageCacheTest: remove sunday from tested words 2021-12-30 15:07:22 +02:00
changes Title: Make use of BacklinkCacheFactory service 2021-09-09 14:04:02 +01:00
changetags
collation RemoteIcuCollation 2021-12-13 22:13:10 +00:00
config
content Move LinksUpdate and LinksDeletionUpdate into the new namespace 2022-01-04 15:35:57 +11:00
context Revert "Replace deprecated methods IContextSource::getWikiPage && IContextSource::canUseWikiPage" 2021-12-14 12:43:15 -08:00
db rdbms: Hard-deprecate legacy cruft from introduction of ResultWrapper 2022-01-06 07:17:38 +01:00
debug DeprecationHelper: avoid closures 2021-12-10 17:15:13 +00:00
deferred Adjust il_from_namespace on cross namespace moves 2022-01-15 14:09:43 +01:00
diff Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
editpage editpage: Replace usage of Title in TextboxBuilder::class 2021-09-20 10:24:00 +01:00
exception
externalstore
filebackend phpunit: Use is_file/is_dir instead of file_exists 2022-01-03 21:47:56 +01:00
filerepo Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
GlobalFunctions Hard deprecate the global function wfWikiID() 2022-01-10 20:50:50 +01:00
HookContainer
htmlform Rename HTMLForm::[get|set|add]*Text() methods 2022-01-02 21:51:48 -08:00
http tests: Use ::class in assertInstanceOf function 2022-01-16 21:17:09 +01:00
import Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
installer
interwiki Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
jobqueue Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
language
languages Fix various typos in documentation 2021-08-23 09:03:44 +00:00
libs phpunit: Use is_file/is_dir instead of file_exists 2022-01-03 21:47:56 +01:00
linkeddata
linker Add comment flag to LinkRenderer 2021-11-02 13:03:20 +01:00
logging Allow DeleteLogFormatter to work with pre-T20361 (April 2009) log rows 2021-12-04 19:45:51 +01:00
mail
media Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
Message Add Message/MessageValue user group member parameter type 2021-11-16 11:24:35 -05:00
Navigation
objectcache
page Category: Return proper int for files, subcats and pages count 2022-01-24 06:27:18 +01:00
pager
ParamValidator/TypeDef Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
parser ParserCacheSerializationTestCases: call ::addModule(Style)?s with an array 2022-01-23 17:26:32 +01:00
password Remove PasswordCannotMatchUsername password policy 2021-09-06 14:55:12 +00:00
Permissions Stop accessing members of the Title class publicly 2021-11-22 14:22:51 +00:00
poolcounter Use PageUpdater's fluent interface 2021-10-05 07:18:17 +01:00
preferences preferences: Introduce SignatureValidatorFactory service 2021-12-14 12:10:32 +00:00
rcfeed
registration Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
resourceloader Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
Rest Merge "REST: gracefully handle all exceptions." 2021-11-04 17:06:28 +00:00
Revision Fix signature of DatabasePostgres::buildGroupConcatField 2022-01-22 11:40:28 +01:00
search Remove passing markTestSkippedIfDbType or add comment 2022-01-22 17:04:53 +00:00
session Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
shell Remove or replace usages of "sanity" 2021-11-21 16:42:31 +00:00
site Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
skins Revert "Revert "Categories are modelled as a portlet"" 2022-01-18 20:18:36 +00:00
sparql
specialpage Make Block objects aware of which wiki they belong to 2022-01-17 21:49:20 +01:00
specials tests: Use ::class in assertInstanceOf function 2022-01-16 21:17:09 +01:00
Storage Remove passing markTestSkippedIfDbType or add comment 2022-01-22 17:04:53 +00:00
title tests: Make it easier to debug MediaWikiTitleCodecTest failures 2021-12-12 22:30:20 -08:00
upload
user Remove passing markTestSkippedIfDbType or add comment 2022-01-22 17:04:53 +00:00
utils resourceloader: Remove support for $algo param in FileContentsHasher 2021-12-03 12:12:29 +00:00
watcheditem
ActorMigrationTest.php
ActorMigrationTest.sql
AutoLoaderTest.php
CategoryTest.php Remove Title from signatures in CategoryViewer 2021-09-13 16:14:06 +00:00
CommentStoreCommentTest.php
CommentStoreTest.php
CommentStoreTest.sql
ContentSecurityPolicyTest.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
EditPageConstraintsTest.php Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
EditPageTest.php Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
ExportTest.php Suppress deprecation warnings from libxml_disable_entity_loader() 2022-01-21 14:03:12 +11:00
ExtraParserTest.php Revert "Replace deprecated methods IContextSource::getWikiPage && IContextSource::canUseWikiPage" 2021-12-14 12:43:15 -08:00
FauxRequestTest.php
GitInfoTest.php
HooksTest.php
HtmlTest.php
LinkerTest.php Drop User methods which were deprecated since 1.36 2021-11-19 10:56:25 +02:00
LinkFilterTest.php
MagicWordFactoryTest.php
MediaWikiServicesTest.php
MediaWikiTest.php
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php
MessageTest.php Remove or replace usages of "sanity" 2021-11-21 19:35:49 +00:00
MockServiceWiring.php
MovePageTest.php MovePage: test links table updates 2022-01-18 17:42:11 +00:00
MultiHttpClientTest.php Merge "Support $wgLocalHTTPProxy in MultiHttpClient" 2021-11-22 21:36:42 +00:00
MWTimestampTest.php
OutputPageTest.php Normalize HTML of page titles using Tidy/Remex 2022-01-22 01:06:00 +00:00
PagePropsTest.php
SampleTest.php
SiteStatsTest.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
StatusTest.php StatusValue: improve toString formatting 2021-11-25 21:53:21 -08:00
TemplateCategoriesTest.php
TestUser.php Create new UserGroupManager::addUserToMultipleGroups method 2021-08-30 10:24:46 -04:00
TestUserRegistry.php
TimeAdjustTest.php
TitleTest.php Remove unreachable parts of getTitleInvalidRegex() in PHP and JS 2021-12-12 22:07:21 -08:00
TitleUrlTest.php Introduce TitleUrlTests 2021-09-08 07:48:45 +00:00
TrackingCategoriesTest.php Move ::addTrackingCategory() implementation to TrackingCategories 2021-10-15 14:17:58 -04:00
WebRequestTest.php
WikiMapTest.php Replace usages of deprecated wfWikiID() 2021-12-21 02:05:55 +00:00
XmlTest.php