ProfessionalWiki / PersistentPageIdentifiers

MediaWiki extension that adds persistent identifiers to wiki pages
https://professional.wiki/en/extension/persistent-page-identifiers
GNU General Public License v2.0
1 stars 0 forks source link

Add parser tests using stub repo #49

Closed malberts closed 4 days ago

malberts commented 5 days ago

Fixes https://github.com/ProfessionalWiki/PersistentPageIdentifiers/issues/31

Possibly less offensive than https://github.com/ProfessionalWiki/PersistentPageIdentifiers/pull/48

This stubs out the whole repo and replaces it with a hacky config-based test-specific stub ID. So basically it replaces the ID retrieval logic.

I cannot use a similar approach to just stub the IdGenerator when it creates the test pages, because I cannot set config when defining !! article.