mediawiki-skins-Vector/tests/phpunit/integration
Timo Tijhof acaaa89c5e phpunit: Fix context leak in SkinVectorTest
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
2022-07-28 20:55:30 -07:00
..
SkinVectorTest.php phpunit: Fix context leak in SkinVectorTest 2022-07-28 20:55:30 -07:00
VectorHooksTest.php Refactor SkinVector to use Hooks::updateMenuItems code to process menu data 2022-06-28 21:53:51 +00:00