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: I3cb332abf9aefbb1cb435188cbf5938f4bcda0c5
This commit is contained in:
Umherirrender 2023-05-31 23:17:39 +02:00
parent 5d76b7b5bb
commit fc111cb213

View file

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