mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-22 12:42:43 +00:00
e8ffe82549
Follow-Up: I131e0d85bd14e75aaebd6f212b2e64a45d4c73a2 Change-Id: I55d7a3f0aa281e813e92f676c225fc825c256f13
20 lines
546 B
PHP
20 lines
546 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Skins\Vector\Tests\Structure;
|
|
|
|
class BundleSizeTest extends \MediaWiki\Tests\Structure\BundleSizeTestBase {
|
|
|
|
/** @inheritDoc */
|
|
public function getBundleSizeConfig(): string {
|
|
return dirname( __DIR__, 3 ) . '/bundlesize.config.json';
|
|
}
|
|
|
|
/** @inheritDoc */
|
|
public function provideBundleSize() {
|
|
$bundleSizeConfig = json_decode( file_get_contents( $this->getBundleSizeConfig() ), true );
|
|
foreach ( $bundleSizeConfig[ 'modules' ] as $testCase ) {
|
|
yield $testCase['resourceModule'] => [ $testCase ];
|
|
}
|
|
}
|
|
}
|