mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 19:26:42 +00:00
Merge "PerformanceBudgetTest: Use existing title"
This commit is contained in:
commit
cb9bf63924
|
@ -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": [
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue