wiki.techinc.nl/tests/phpunit/includes/Revision
Aryeh Gregor 908e46028a Don't require Title for getTimestampFromId
3e36ba655e added an option for passing a page ID to this method of
Revision, and e03787afd9 switched it to a Title and made it mandatory.
This behavior propagated to the method in RevisionStore.  As far as I
can tell, the parameter does not help anything, but it can add a
database query to get the page ID if it's not cached, and impedes
conversion to LinkTarget. I can't figure out any reason to not
completely drop it. I've noted it as deprecated but still supported it
for now for compatibility -- I found one extension that does pass it.
(It's ignored, though, which theoretically would be a behavior change if
someone was passing a Title that didn't match the revision ID.)

While I was at it, I added the method to RevisionLookup, although it's
only used in later patches. Properly I should move that piece to a later
patch, but it didn't seem worth the effort.

I didn't change the Revision method, because the whole Revision class is
deprecated anyway.

Change-Id: I26ef5f2bf828f0f450633b7237d26d888e2c8773
2019-05-05 14:35:53 +03:00
..
create-pre-mcr-fields.sql Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
drop-mcr-tables.sql Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
drop-pre-mcr-fields.sql Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
drop-pre-mcr-fields.sqlite.sql Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
FallbackSlotRoleHandlerTest.php [MCR] Introduce SlotRoleHandler and SlotRoleRegistry 2018-11-30 12:29:05 -08:00
MainSlotRoleHandlerTest.php Fix typo in tests/phpunit/includes/Revision/MainSlotRoleHandlerTest.php 2019-01-28 10:19:50 +00:00
McrReadNewRevisionStoreDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
McrReadNewSchemaOverride.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
McrRevisionStoreDbTest.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
McrSchemaDetection.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
McrSchemaOverride.php Fix typo in McrSchemaOverride 2019-03-19 21:29:14 -07:00
McrWriteBothRevisionStoreDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
McrWriteBothSchemaOverride.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
MutableRevisionRecordTest.php Clear the title cache in MutableRevisionRecordTest 2018-10-25 21:16:27 +00:00
MutableRevisionSlotsTest.php Fix @param tags 2019-02-03 16:49:10 +01:00
NoContentModelRevisionStoreDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
PreMcrRevisionStoreDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
PreMcrSchemaOverride.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
RenderedRevisionTest.php Fix @param tags 2019-02-03 16:49:10 +01:00
RevisionArchiveRecordTest.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
RevisionQueryInfoTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionRecordTests.php build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 2019-02-07 18:39:42 +00:00
RevisionRendererTest.php Fix @param tags 2019-02-03 16:49:10 +01:00
RevisionSlotsTest.php Fix @param tags 2019-02-03 16:49:10 +01:00
RevisionStoreCacheRecordTest.php Avoid using stale data for revision visibility and actor data 2019-03-10 15:34:44 -05:00
RevisionStoreDbTestBase.php Don't require Title for getTimestampFromId 2019-05-05 14:35:53 +03:00
RevisionStoreFactoryTest.php Add missing @covers to revision related tests 2019-02-01 21:15:03 +00:00
RevisionStoreRecordTest.php Re-namespace RevisionStore and RevisionRecord classes 2018-10-09 10:22:48 -04:00
RevisionStoreTest.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
SlotRecordTest.php Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
SlotRoleHandlerTest.php [MCR] Introduce SlotRoleHandler and SlotRoleRegistry 2018-11-30 12:29:05 -08:00
SlotRoleRegistryTest.php [MCR] Introduce SlotRoleHandler and SlotRoleRegistry 2018-11-30 12:29:05 -08:00