mediawiki-extensions-Multim.../tests/phpunit/structure/BundleSizeTest.php
Umherirrender 33f327dc69 tests: Use renamed class BundleSizeTestBase
Follow-Up: I131e0d85bd14e75aaebd6f212b2e64a45d4c73a2
Change-Id: I0361c994af6320f4b8100390e8f43da3b92bb689
2024-06-12 20:38:07 +02:00

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 ];
}
}
}