Merge "Don't blindly overwrite contentnavigation"

This commit is contained in:
jenkins-bot 2021-01-12 06:15:31 +00:00 committed by Gerrit Code Review
commit 8dea938e3d
1 changed files with 9 additions and 11 deletions

View File

@ -62,18 +62,16 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
] );
$this->setTemporaryHook( 'SkinTemplateNavigation', [
function ( &$skinTemplate, &$content_navigation ) {
$content_navigation = [
'actions' => [
'action-1' => []
],
'namespaces' => [
'ns-1' => []
],
'variants' => [
'variant-1' => []
],
'views' => [],
$content_navigation['actions'] = [
'action-1' => []
];
$content_navigation['namespaces'] = [
'ns-1' => []
];
$content_navigation['variants'] = [
'variant-1' => []
];
$content_navigation['views'] = [];
}
] );
$openVectorTemplate = TestingAccessWrapper::newFromObject( $vectorTemplate );