Deprecate PersonalUrls hook

* Updated usages to use SkinTemplateNavigation::Universal
in preparation for the hard deprecation and removal of the hook.

Bug: T310017
Change-Id: I133c7479da294c0b8c908ad8d34690297f08200b
This commit is contained in:
Moh'd Khier Abualruz 2022-09-06 23:48:27 +02:00 committed by Jdlrobson
parent 948027450e
commit 3a10708b4e

View file

@ -202,13 +202,6 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
$context->setLanguage( 'fr' );
$vectorTemplate = $this->provideVectorTemplateObject();
$vectorTemplate->setContext( $context );
$this->setTemporaryHook( 'PersonalUrls', [
static function ( &$personal_urls, &$title, $skin ) {
$personal_urls = [
'pt-1' => [ 'text' => 'pt1' ],
];
}
] );
$this->setTemporaryHook( 'SkinTemplateNavigation::Universal', [
static function ( &$skinTemplate, &$content_navigation ) {
$content_navigation['actions'] = [
@ -227,6 +220,9 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
]
];
$content_navigation['views'] = [];
$content_navigation['user-menu'] = [
'pt-1' => [ 'text' => 'pt1' ],
];
}
] );
$openVectorTemplate = TestingAccessWrapper::newFromObject( $vectorTemplate );