wiki.techinc.nl/tests/phpunit/includes/Revision
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
..
ContributionsLookupTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MutableRevisionRecordTest.php Deprecate constructing revision with non-proper page 2021-03-10 22:05:06 +01:00
RenderedRevisionTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
RevisionArchiveRecordTest.php Replace Assert::parameterType with typehints 2021-08-03 10:03:48 -04:00
RevisionQueryInfoTest.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
RevisionRendererTest.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
RevisionStoreDbTest.php Move EditResultBuilder::findIdenticalRevision to RevStore 2021-07-25 07:36:31 -07:00
RevisionStoreRecordTest.php Replace Assert::parameterType with typehints 2021-08-03 10:03:48 -04:00
RevisionStoreTest.php ContribsPager row filtering with RevisionStore::isRevisionRow 2021-08-10 17:59:30 -07:00
SlotRecordTest.php Replace Assert::parameterType with typehints 2021-08-03 10:03:48 -04:00