wiki.techinc.nl/tests/phpunit/includes
Tim Starling 088a313fec ContribsPager row filtering with RevisionStore::isRevisionRow
Flow hooks into ContribsPager, causing formatRow() to be called with
FormatterRow objects instead of stdClass objects. formatRow() is
expected to silently decline to format such objects, leaving formatting
up to a subsequent hook.

Instead of calling newRevisionFromRow with all warnings suppressed and
all exceptions caught, provide isRevisionRow() which determines whether
the row is valid. Thus, unexpected exceptions will be visible and the
code does not depend on details of how newRevisionFromRow() validates
its arguments.

Bug: T288563
Change-Id: Id0316886d770cd905897d515b3eb658a5875bd80
2021-08-10 17:59:30 -07:00
..
actions Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
api Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
auth AuthManager: inject more services 2021-08-05 21:31:02 +00:00
block tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
cache build: Updating dependencies 2021-07-22 03:36:05 +00:00
changes build: Updating dependencies 2021-07-22 03:36:05 +00:00
changetags ChangeTagsTest: make use of assertSelect() 2021-08-05 22:55:21 +00:00
collation build: Updating dependencies 2021-07-22 03:36:05 +00:00
config Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
content Move Content::preSaveTransform to ContentHandler 2021-07-29 18:06:02 +03:00
context Remove $actor field from UsererIdentityValue 2021-04-13 18:18:06 +00:00
db ILoadBalancer: Rename finalizeMasterChanged() to finalizePrimaryChanges() 2021-08-02 18:15:12 +00:00
debug DeprecationHelper: Support mocking and dynamic properties 2021-08-04 12:38:02 -07:00
deferred build: Updating dependencies 2021-07-22 03:36:05 +00:00
diff build: Updating dependencies 2021-07-22 03:36:05 +00:00
editpage Replace easy usages of User for UserIdentity/Authority 2021-06-09 07:53:52 -07:00
exception build: Updating dependencies 2021-07-22 03:36:05 +00:00
externalstore Remove unneeded uses of MediaWikiCoversValidator 2021-05-22 01:43:29 +00:00
filebackend build: Updating dependencies 2021-07-22 03:36:05 +00:00
filerepo tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
GlobalFunctions build: Updating dependencies 2021-07-22 03:36:05 +00:00
HookContainer Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
htmlform Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
http Move HttpRequestFactoryTest to a unit test 2021-06-02 13:20:02 +00:00
import build: Updating dependencies 2021-07-22 03:36:05 +00:00
installer Installer: Do not use mediawiki.skinning.interface module 2021-04-15 11:11:32 -07:00
interwiki Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
jobqueue build: Updating dependencies 2021-07-22 03:36:05 +00:00
language
languages Move Language subclasses to includes/ 2021-08-04 23:44:46 +01:00
libs objectcache: make use of new modtoken field in SqlBagOStuff 2021-08-05 02:33:00 +01:00
linkeddata build: Updating dependencies 2021-07-22 03:36:05 +00:00
linker build: Updating dependencies 2021-07-22 03:36:05 +00:00
logging build: Updating dependencies 2021-07-22 03:36:05 +00:00
mail Make MailAddressTest a unit test 2021-07-23 10:30:04 +00:00
media PNGMetadataExtractor: skip oversize chunks instead of aborting 2021-07-28 14:14:22 +10:00
Message phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
Navigation
objectcache build: Updating dependencies 2021-07-22 03:36:05 +00:00
page tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
pager Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
ParamValidator/TypeDef Support fluent interface for PageUpdater 2021-07-29 12:09:37 -04:00
parser ParserOptions: support setting a default for lazy options 2021-08-10 10:22:05 -07:00
password Remove User from password policy check interfaces 2021-06-11 10:21:14 -07:00
Permissions Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
poolcounter ParserCache: only use in-process caching for metadata 2021-04-06 17:53:38 -06:00
preferences build: Updating dependencies 2021-07-22 03:36:05 +00:00
rcfeed build: Updating dependencies 2021-07-22 03:36:05 +00:00
registration tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
resourceloader tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
Rest build: Updating dependencies 2021-07-22 03:36:05 +00:00
Revision ContribsPager row filtering with RevisionStore::isRevisionRow 2021-08-10 17:59:30 -07:00
search build: Updating dependencies 2021-07-22 03:36:05 +00:00
session Use CentralIdLookup service instead of static factory 2021-07-26 07:00:53 -07:00
shell build: Updating dependencies 2021-07-22 03:36:05 +00:00
site Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
skins Remove doSetupSkinUserCss and setupSkinUserCss 2021-07-27 08:39:25 -07:00
sparql
specialpage build: Updating dependencies 2021-07-22 03:36:05 +00:00
specials ContribsPager row filtering with RevisionStore::isRevisionRow 2021-08-10 17:59:30 -07:00
Storage Replace Assert::parameterType with typehints 2021-08-03 10:03:48 -04:00
title build: Updating dependencies 2021-07-22 03:36:05 +00:00
upload Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
user ContribsPager row filtering with RevisionStore::isRevisionRow 2021-08-10 17:59:30 -07:00
utils build: Updating dependencies 2021-07-22 03:36:05 +00:00
watcheditem build: Updating dependencies 2021-07-22 03:36:05 +00:00
ActorMigrationTest.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
ActorMigrationTest.sql Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
AutoLoaderTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
CategoryTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
CommentStoreCommentTest.php
CommentStoreTest.php build: Upgrade mediawiki-codesniffer from v35.0.0 to v36.0.0 2021-04-29 13:00:15 -07:00
CommentStoreTest.sql
ContentSecurityPolicyTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
EditPageConstraintsTest.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
EditPageTest.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
ExportTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ExtraParserTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
FauxRequestTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
GitInfoTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
HooksTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
HtmlTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
LinkerTest.php Support fluent interface for PageUpdater 2021-07-29 12:09:37 -04:00
LinkFilterTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MagicWordFactoryTest.php
MediaWikiServicesTest.php Tests: Mark more more closures as static 2021-02-09 02:55:57 +00:00
MediaWikiTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MediaWikiVersionFetcherTest.php
MergeHistoryTest.php Clean up MergeHistory 2021-07-13 12:01:04 -07:00
MessageTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MockServiceWiring.php Use the old HookContainer to set up the post-reset services 2020-12-01 13:04:12 +11:00
MovePageTest.php Make MovePageTest actually test valid moves 2021-07-28 09:18:59 -07:00
MultiHttpClientTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MWTimestampTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
OutputPageTest.php Revert "Use CsrfTokenSet as CSRF token source" 2021-08-05 15:48:26 -07:00
PagePropsTest.php tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
ReadOnlyModeTest.php Remove meaningless ->expects( $this->any() ) from all tests 2021-04-23 11:58:58 +02:00
SampleTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
SiteStatsTest.php
StatusTest.php phpunit: Mass-replace setMethods with onlyMethods and adjust 2021-04-16 20:15:00 +02:00
TemplateCategoriesTest.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
TestUser.php Hard deprecate User group methods 2021-07-23 15:00:16 +03:00
TestUserRegistry.php Remove unneeded @return documentation 2021-01-25 19:44:27 +01:00
TimeAdjustTest.php
TitleMethodsTest.php Fix mw.util.getUrl when given empty title with fragment 2021-08-09 19:21:15 +02:00
TitleTest.php tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
WebRequestTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
WikiMapTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
XmlTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00