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
(cherry picked from commit 3a10708b4e
)
This commit is contained in:
parent
50c2aab74c
commit
ab7eee4113
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue