Merge "phpunit: Fix context leak in SkinVectorTest"

This commit is contained in:
jenkins-bot 2022-08-01 15:47:53 +00:00 committed by Gerrit Code Review
commit ea5c4d3735
1 changed files with 2 additions and 2 deletions

View File

@ -198,10 +198,10 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
*/
public function testGetTemplateData() {
$title = Title::newFromText( 'SkinVector' );
$context = RequestContext::getMain();
$context->setTitle( $title );
$context = RequestContext::newExtraneousContext( $title );
$context->setLanguage( 'fr' );
$vectorTemplate = $this->provideVectorTemplateObject();
$vectorTemplate->setContext( $context );
$this->setTemporaryHook( 'PersonalUrls', [
static function ( &$personal_urls, &$title, $skin ) {
$personal_urls = [