mediawiki-skins-MinervaNeue/tests
Piotr Miazga 9d90df7b0b SkinMinerva testGetContextSpecificModule test might use undefined title
Test scenario for getContextSpecificModules() mocks only Skin->getTitle()
behavior, but while executing isAllowedPageAction() Skin will create a
UserPageHelper with default RequestContext. As RequestContext is not mocked,
$context->getTitle() will return undefined what could lead to tests crash

Changes:
 - instead of mocking SkinMinerva::getTitle() pass test context with injected
title. Other tests will work properly as MediaWikiTestCase::tearDown() always
restes RequestContext to default

Bug: T170624
Change-Id: I872fddf8d9c52a6875bb6c69a12407a8125fba4c
2017-07-17 21:40:34 +02:00
..
browser QA: Fix a flakey test 2017-07-13 16:47:28 +00:00
phpunit SkinMinerva testGetContextSpecificModule test might use undefined title 2017-07-17 21:40:34 +02:00
qunit/skins.minerva.notifications.badge Minerva is its own skin 2017-07-12 08:12:40 -07:00