aboutsummaryrefslogtreecommitdiffstats
path: root/includes/TitleFactory.php
Commit message (Collapse)AuthorAgeFilesLines
* Introduce PageReferencedaniel2021-04-131-0/+11
| | | | | | | | | | | This explores the idea of a PageReference type which represents a namespace/dbkey pair. Every ProperPageIdentity is a PageReference. Some LinkTargets can be mapped to a PageReference. Bug: T279522 Change-Id: Id8b0c781fce329adcc4770f4840b2ba0108f6898
* MainSlotRoleHandler: inject dependenciesDannyS7122021-03-111-0/+11
| | | | | | | Added TitleFactory::castFromPageIdentity Follow-up will convert the tests to unit tests Change-Id: Ia5662d3e4740e289d12b13ccc7668fad198f23f2
* Add TitleFactoryGergő Tisza2019-10-181-0/+155
Makes it possible to mock static Title methods in tests, where they are one of the more common reasons for not being able to use MediaWikiUnitTestCase. Actually introducing dependency injection to Title is left for the future. Change-Id: I959ba87f8e283da9549b6bfcefd338e60b00be8f