wiki.techinc.nl/tests/phpunit/includes/page
daniel 855988fd0e LinkCache: soft deprecate addGoodLinkObj()
addGoodLinkObj() has many optional arguments, but omitting them actually
means corrupting the cache.

Nearly all existing callers are in tests.
So LinkCacheTestTrait::addGoodLinkObject() was created only
for testing. It is better to have this method in the
trait, because building the row directly in each test
would make these tests brittle against schema changes.

The only usage in WMF production code was in WikiPage and has been
fixed.

Bug: T284955
Change-Id: I03a2bd9ed64fcc0281ee29a286c8db395a9e03d9
2021-09-10 16:00:02 +02:00
..
ArticleTablesTest.php tests: Swap assertion order in unit tests 2021-08-04 20:21:01 +02:00
ArticleTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ArticleViewTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ImagePage404Test.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
ImagePageTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
PageArchiveTest.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
PageSelectQueryBuilderTest.php PageStore: Use LinkCache 2021-09-01 08:24:34 +00:00
PageStoreTest.php LinkCache: soft deprecate addGoodLinkObj() 2021-09-10 16:00:02 +02:00
ParserOutputAccessTest.php Convert ParserOutputAccess to PageRecord. 2021-04-05 07:46:34 -06:00
WikiCategoryPageTest.php Replace PHPUnit ->returnValue() with ->willReturn() shortcut 2021-04-22 10:37:45 +02:00
WikiPageDbTest.php Merge "Improve DeletePage tests" 2021-09-09 21:10:39 +00:00