| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Tests\HookContainer; |
| 4 | |
| 5 | use MediaWiki\Api\ApiHookRunner; |
| 6 | use MediaWiki\HookContainer\HookRunner; |
| 7 | use MediaWiki\ResourceLoader as RL; |
| 8 | |
| 9 | /** |
| 10 | * Tests that all arguments passed into HookRunner are passed along to HookContainer. |
| 11 | * @covers \MediaWiki\HookContainer\HookRunner |
| 12 | * @covers \MediaWiki\Api\ApiHookRunner |
| 13 | * @covers \MediaWiki\ResourceLoader\HookRunner |
| 14 | */ |
| 15 | class HookRunnerTest extends HookRunnerTestBase { |
| 16 | |
| 17 | public static function provideHookRunners() { |
| 18 | yield ApiHookRunner::class => [ ApiHookRunner::class ]; |
| 19 | yield HookRunner::class => [ HookRunner::class ]; |
| 20 | yield RL\HookRunner::class => [ RL\HookRunner::class ]; |
| 21 | } |
| 22 | } |