mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-23 15:57:03 +00:00
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:
parent
5d76b7b5bb
commit
fc111cb213
16
tests/phpunit/unit/HookRunnerTest.php
Normal file
16
tests/phpunit/unit/HookRunnerTest.php
Normal 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 ];
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue