Merge "PerformanceBudgetTest: Use existing title"

This commit is contained in:
jenkins-bot 2023-11-02 11:56:01 +00:00 committed by Gerrit Code Review
commit cb9bf63924
2 changed files with 3 additions and 4 deletions

View file

@ -1,12 +1,12 @@
{
"total": {
"vector-2022": {
"scripts": "68.1KB",
"scripts": "70.1KB",
"styles": "15KB"
},
"vector": {
"scripts": "57.3KB",
"styles": "8.3KB"
"styles": "8.6KB"
}
},
"modules": [

View file

@ -9,7 +9,6 @@ use MediaWiki\Output\OutputPage;
use MediaWiki\Request\FauxRequest;
use MediaWiki\ResourceLoader\Context;
use MediaWiki\ResourceLoader\Module;
use MediaWiki\Title\Title;
use MediaWikiIntegrationTestCase;
use RequestContext;
use Wikimedia\DependencyStore\KeyValueDependencyStore;
@ -81,7 +80,7 @@ class PerformanceBudgetTest extends MediaWikiIntegrationTestCase {
protected function prepareSkin( string $skinName ): \Skin {
$skinFactory = MediaWikiServices::getInstance()->getSkinFactory();
$skin = $skinFactory->makeSkin( $skinName );
$title = Title::newFromText( 'Hello' );
$title = $this->getExistingTestPage()->getTitle();
$context = new DerivativeContext( RequestContext::getMain() );
$context->setTitle( $title );
$context->setSkin( $skin );