From 2cb1ad0f582bacef998b859f9582e4a85c8041e3 Mon Sep 17 00:00:00 2001 From: Thalia Date: Wed, 13 Nov 2024 18:53:45 +0000 Subject: [PATCH] SpecialAbuseFilterTest: Remove unused trait Remove the use statement for MockAuthorityTrait, which is unused. We can't use it because SpecialAbuseFilter checks permissions on the user, not the authority. Change-Id: I2baca5753dd9e21aa90b6856c5850d1100eda4d5 --- tests/phpunit/integration/Special/SpecialAbuseFilterTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/phpunit/integration/Special/SpecialAbuseFilterTest.php b/tests/phpunit/integration/Special/SpecialAbuseFilterTest.php index 058ee8547..48fab0019 100644 --- a/tests/phpunit/integration/Special/SpecialAbuseFilterTest.php +++ b/tests/phpunit/integration/Special/SpecialAbuseFilterTest.php @@ -22,7 +22,6 @@ use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewTools; use MediaWiki\MediaWikiServices; use MediaWiki\Permissions\SimpleAuthority; use MediaWiki\Request\FauxRequest; -use MediaWiki\Tests\Unit\Permissions\MockAuthorityTrait; use SpecialPageTestBase; use Wikimedia\TestingAccessWrapper; @@ -42,8 +41,6 @@ use Wikimedia\TestingAccessWrapper; * @group Database */ class SpecialAbuseFilterTest extends SpecialPageTestBase { - use MockAuthorityTrait; - /** * @var SimpleAuthority */