wiki.techinc.nl/tests/phpunit/includes/deferred
Tim Starling a7df0148d8 LinksTable: Cast all array keys to string
When fetching a key from an array, PHP converts numeric strings to
integers. This led to an incorrect category update query.

So:

* In LinksTable subclasses, cast all string-like array keys to string.
* Add a unit test which confirms that no integers leak into link IDs.
* Add a fully integrated regression test for T301433.

The integration test and 7 of the link ID cases are confirmed to fail
if Amir's patch is reverted.

Bug: T301433
Change-Id: I8d19443607121b3efcafb82096bcff18c41035df
2022-02-14 15:56:34 +11:00
..
CdnCacheUpdateTest.php
DeferredUpdatesTest.php phpunit: use ->getServiceContainer() in integration tests 2022-01-27 22:04:16 +01:00
LinksDeletionUpdateTest.php Move LinksUpdate and LinksDeletionUpdate into the new namespace 2022-01-04 15:35:57 +11:00
LinksUpdateTest.php LinksTable: Cast all array keys to string 2022-02-14 15:56:34 +11:00
RefreshSecondaryDataUpdateTest.php Merge "Replace deprecated JobQueueGroup::singleton()" 2022-01-27 22:17:12 +00:00
SearchUpdateTest.php
SiteStatsUpdateTest.php