mediawiki-skins-MinervaNeue/tests
Bartosz Dziewoński 700b1c43e9 Allow passing context to MinervaPagePermissions
Previously it always used the global context RequestContext::getMain(),
which is basically equivalent to using $wgTitle or $wgUser, and will
not produce the correct results when used in other situations than
regular web requests (e.g. API requests or jobs).

MinervaPagePermissions is required to parse pages (due to the custom
section edit links in SkinMinerva::doEditSectionLink), which is often
done in API requests or jobs.

Pass the appropriate context in SkinMinerva::getPermissions(). This
fixes T234868. Note that MinervaPagePermissions is also used elsewhere
and I am not fixing those cases.

Depends-On: Iaa83e5f801c7776bf8218d8ce7484e2485b227d4
Bug: T234868
Change-Id: I2d6fd525f20a0b6beeeaa731f6b8caa471b8529d
2020-01-29 10:33:36 -08:00
..
browser Categories browser test only runs if the feature is enabled 2020-01-13 22:09:07 +00:00
phpunit Allow passing context to MinervaPagePermissions 2020-01-29 10:33:36 -08:00
qunit Echo is removed from Minerva 2019-10-08 23:21:12 +00:00
selenium Do not add the navigation-enabled class to body tag for drawers 2020-01-14 01:20:40 +00:00