From b1fa1d3dd7aff657dd25e1ca36c3ff62677e4bd7 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 14 Nov 2022 21:28:30 +0000 Subject: [PATCH] Use @coversDefaultClass in test case https://phpunit.readthedocs.io/en/9.5/annotations.html#coversdefaultclass Change-Id: Ic2a1ddcd133b8d5ec653348ea56208a80568580a --- tests/phpunit/HookTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/HookTest.php b/tests/phpunit/HookTest.php index 3fd81775..92fa6d21 100644 --- a/tests/phpunit/HookTest.php +++ b/tests/phpunit/HookTest.php @@ -10,12 +10,13 @@ use RequestContext; /** * @group CodeMirror + * @coversDefaultClass \MediaWiki\Extension\CodeMirror\Hooks */ class HookTest extends MediaWikiIntegrationTestCase { /** - * @covers \MediaWiki\Extension\CodeMirror\Hooks::isCodeMirrorOnPage - * @covers \MediaWiki\Extension\CodeMirror\Hooks::onBeforePageDisplay + * @covers ::isCodeMirrorOnPage + * @covers ::onBeforePageDisplay */ public function testOnBeforePageDisplay() { $userOptionsLookup = $this->createMock( UserOptionsLookup::class ); @@ -33,7 +34,7 @@ class HookTest extends MediaWikiIntegrationTestCase { } /** - * @covers \MediaWiki\Extension\CodeMirror\Hooks::onGetPreferences + * @covers ::onGetPreferences */ public function testPreferenceRegistered() { $user = self::getTestUser()->getUser();