mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 00:48:46 +00:00
9d90df7b0b
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 |
||
---|---|---|
dev-scripts | ||
i18n | ||
includes | ||
minerva.less | ||
resources | ||
scripts | ||
skinStyles | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.rubocop.yml | ||
.stylelintrc | ||
CODE_OF_CONDUCT.md | ||
Gemfile | ||
Gemfile.lock | ||
Gruntfile.js | ||
MinervaNeue.php | ||
package.json | ||
Rakefile | ||
skin.json |