mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-02 19:56:17 +00:00
33f327dc69
Follow-Up: I131e0d85bd14e75aaebd6f212b2e64a45d4c73a2 Change-Id: I0361c994af6320f4b8100390e8f43da3b92bb689
20 lines
550 B
PHP
20 lines
550 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\MultimediaViewer\Tests;
|
|
|
|
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 ];
|
|
}
|
|
}
|
|
}
|