| 1 |
<?php |
| 2 |
|
| 3 |
namespace MediaWiki\Extension\MultimediaViewer\Tests; |
| 4 |
|
| 5 |
class BundleSizeTest extends \MediaWiki\Tests\Structure\BundleSizeTestBase { |
| 6 |
|
| 7 |
|
| 8 |
public function getBundleSizeConfig(): string { |
| 9 |
return dirname( __DIR__, 3 ) . '/bundlesize.config.json'; |
| 10 |
} |
| 11 |
|
| 12 |
|
| 13 |
public function provideBundleSize() { |
| 14 |
$bundleSizeConfig = json_decode( file_get_contents( $this->getBundleSizeConfig() ), true ); |
| 15 |
foreach ( $bundleSizeConfig[ 'modules' ] as $testCase ) { |
| 16 |
yield $testCase['resourceModule'] => [ $testCase ]; |
| 17 |
} |
| 18 |
} |
| 19 |
} |