tests: Add basic test for HookRunner

Add a basic unit test for HookRunner to improve coverage and
validate arguments between hook runner and hook interfaces.

Change-Id: Ib0c1f79fe724c1567081cec62894e2d35d00b812
This commit is contained in:
Umherirrender 2023-05-31 23:14:29 +02:00
parent 2dafc97848
commit 725f9ee4b5

View file

@ -0,0 +1,16 @@
<?php
namespace MediaWiki\Extension\ConfirmEdit\Test\Unit;
use MediaWiki\Extension\ConfirmEdit\Hooks\HookRunner;
use MediaWiki\Tests\HookContainer\HookRunnerTestBase;
/**
* @covers \MediaWiki\Extension\ConfirmEdit\Hooks\HookRunner
*/
class HookRunnerTest extends HookRunnerTestBase {
public static function provideHookRunners() {
yield HookRunner::class => [ HookRunner::class ];
}
}