wiki.techinc.nl/tests/phpunit/unit/includes/page
Daimona Eaytoy 0e558da7b8 Change return format of DeletePage again
In retrospect, I rushed the previous patch: we really need a way to tell
which deletion an ID belong to (and whether it was scheduled). So make
both result getters return an array with known keys that can be used
programmatically. Right now the class can only delete a single page, and
thus there's a single constant and this change is effectively a noop.

The deletionWasScheduled() method, introduced in 1.37, was
hard-deprecated out of an abundance of caution. There are no known uses
on codesearch, so it can probably just be removed in the next release.

Also reorder constructor params to DeletePage -- BacklinkCacheFactory is
a service injected by the factory, hence it shouldn't be grouped
together with value objects injected by the caller.

Change-Id: I32679b7cacc638ec3e9dc5b8dfe9bcc794b22ecf
2021-11-29 15:09:42 +00:00
..
DeletePageTest.php Change return format of DeletePage again 2021-11-29 15:09:42 +00:00
PageCommandFactoryTest.php Add perm checks to UndeletePage and make it a real service 2021-10-04 20:25:49 +00:00
PageIdentityValueTest.php Add convenience constructors for PageReference/Identity 2021-06-07 07:31:24 -07:00
PageReferenceValueTest.php Add convenience constructors for PageReference/Identity 2021-06-07 07:31:24 -07:00
PageStoreFactoryTest.php tests: Avoid non-namespaced aliases for Wikimedia\Rdbms namespace 2021-09-18 20:24:08 +02:00
PageStoreRecordTest.php Title: use PageStore instead of LinkCache 2021-11-02 23:12:47 +01:00