mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
Tests: Always set Skin
VectorTemplate relies on many of SkinVector's methods. To future proof these tests we need to set the skin in the mocked object. Bug: T251212 Change-Id: Ifd9bbc9c909626ecfe8ccd085673bc777423d560
This commit is contained in:
parent
4b9d307c33
commit
6d9e7c07e5
|
@ -26,6 +26,7 @@ class VectorTemplateTest extends MediaWikiIntegrationTestCase {
|
|||
new TemplateParser(),
|
||||
true
|
||||
);
|
||||
$template->set( 'skin', new \SkinVector() );
|
||||
return $template;
|
||||
}
|
||||
|
||||
|
@ -144,7 +145,6 @@ class VectorTemplateTest extends MediaWikiIntegrationTestCase {
|
|||
'variants' => [],
|
||||
'views' => [],
|
||||
] );
|
||||
$vectorTemplate->set( 'skin', new \SkinVector() );
|
||||
$vectorTemplate->set( 'userlangattributes', $langAttrs );
|
||||
$openVectorTemplate = TestingAccessWrapper::newFromObject( $vectorTemplate );
|
||||
|
||||
|
|
Loading…
Reference in a new issue