mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
acaaa89c5e
There are two issues with context in this test case: 1. The $vectorTemplate object was not given the $context object. Calling setContext() is the same as MediaWiki would normally do after calling SkinFactory, e.g. as in RequestContext::getSkin. 2. The "main" glboal state was leaking into the test by mutating the result of getMain() instead of creating your own for use in the test. Change-Id: I09eb8c3a38c0d4e2c85461b61e6f14ab00995016 |
||
---|---|---|
.. | ||
a11y | ||
jest | ||
phpunit | ||
.eslintrc.json |