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:
jdlrobson 2020-05-02 16:56:09 -07:00
parent 4b9d307c33
commit 6d9e7c07e5

View file

@ -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 );