mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 16:23:49 +00:00
de6f1bd2c6
Bug: T77349 Change-Id: Ia3cc3a1d630c5e2528b0f46856969eb4fde960cb
20 lines
546 B
PHP
20 lines
546 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\MultimediaViewer\Tests;
|
|
|
|
class BundleSizeTest extends \MediaWiki\Tests\Structure\BundleSizeTest {
|
|
|
|
/** @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 ];
|
|
}
|
|
}
|
|
}
|